Skip to content

Commit 9e6bdbb

Browse files
committed
SSA: Don't add phi-reads for frontiers of uncertain reads.
1 parent 947a85e commit 9e6bdbb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

shared/ssa/codeql/ssa/Ssa.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ module Make<LocationSig Location, InputSig<Location> Input> {
307307
private predicate inReadDominanceFrontier(BasicBlock bb, SourceVariable v) {
308308
exists(BasicBlock readbb | inDominanceFrontier(readbb, bb) |
309309
ssaDefReachesRead(v, _, readbb, _) and
310+
variableRead(readbb, _, v, true) and
310311
not variableWrite(readbb, _, v, _)
311312
or
312313
synthPhiRead(readbb, v) and

0 commit comments

Comments
 (0)