Skip to content

Commit d6dc91d

Browse files
committed
SSA: Inline predicate to simplify negation.
1 parent 411aff6 commit d6dc91d

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
@@ -388,7 +388,7 @@ module Make<LocationSig Location, InputSig<Location> Input> {
388388
private predicate liveThrough(BasicBlock idom, BasicBlock bb, SourceVariable v) {
389389
idom = getImmediateBasicBlockDominator(bb) and
390390
liveAtExit(bb, v) and
391-
not ssaRef(bb, _, v, Def())
391+
not any(Definition def).definesAt(v, bb, _)
392392
}
393393

394394
/**

0 commit comments

Comments
 (0)