Skip to content

Commit 11166fc

Browse files
committed
SSA: Restrict phi-read creation to be based on reachable reads.
1 parent d5ac5b4 commit 11166fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared/ssa/codeql/ssa/Ssa.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ module Make<LocationSig Location, InputSig<Location> Input> {
291291
pragma[nomagic]
292292
private predicate inReadDominanceFrontier(BasicBlock bb, SourceVariable v) {
293293
exists(BasicBlock readbb | inDominanceFrontier(readbb, bb) |
294-
variableRead(readbb, _, v, _) and
294+
ssaDefReachesRead(v, _, readbb, _) and
295295
not variableWrite(readbb, _, v, _)
296296
or
297297
synthPhiRead(readbb, v) and

0 commit comments

Comments
 (0)