Skip to content

Commit 90a16cf

Browse files
authored
Merge pull request #21314 from MathiasVP/remove-tc
C++: Remove redundant transitive closure
2 parents 76ed386 + 9596b7b commit 90a16cf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1726,9 +1726,7 @@ private module Cached {
17261726
SsaImpl::ssaFlow(n, succ) and
17271727
bb1 = n.getBasicBlock() and
17281728
bb2 = succ.getBasicBlock() and
1729-
bb1 != bb2 and
1730-
bb2.dominates(bb1) and
1731-
bb1.getASuccessor+() = bb2
1729+
bb2.strictlyDominates(bb1)
17321730
)
17331731
}
17341732

0 commit comments

Comments
 (0)