Skip to content

Commit 81b3035

Browse files
committed
SSA: Inline predicate
1 parent f80cd97 commit 81b3035

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

shared/ssa/codeql/ssa/Ssa.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,10 @@ module Make<LocationSig Location, InputSig<Location> Input> {
376376
variableRead(bb, i, v, _) and
377377
k = SsaActualRead()
378378
or
379-
any(DefinitionExt def).definesAt(v, bb, i, k)
379+
any(Definition def).definesAt(v, bb, i) and
380+
k = SsaDef()
381+
or
382+
synthPhiRead(bb, v) and i = -1 and k = SsaPhiRead()
380383
}
381384

382385
/**

0 commit comments

Comments
 (0)