mirror of
https://github.com/github/codeql.git
synced 2026-05-04 21:25:44 +02:00
SSA: Fix bug in guards for ssa input nodes.
This commit is contained in:
@@ -1574,8 +1574,12 @@ module Make<LocationSig Location, InputSig<Location> Input> {
|
||||
}
|
||||
|
||||
cached
|
||||
private DefinitionExt getAPhiInputDef(SsaInputDefinitionExt phi, BasicBlock bb) {
|
||||
phi.hasInputFromBlock(result, _, _, _, bb)
|
||||
private Definition getAPhiInputDef(SsaInputDefinitionExt phi, BasicBlock bb) {
|
||||
exists(SourceVariable v, BasicBlock bbDef |
|
||||
phi.definesAt(v, bbDef, _, _) and
|
||||
getABasicBlockPredecessor(bbDef) = bb and
|
||||
ssaDefReachesEndOfBlock(bb, result, v)
|
||||
)
|
||||
}
|
||||
|
||||
private newtype TNode =
|
||||
|
||||
Reference in New Issue
Block a user