Skip to content

Commit 2628552

Browse files
committed
C++: Fix join-order problem in clearsContent
1 parent 54632cd commit 2628552

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,9 @@ predicate clearsContent(Node n, Content c) {
786786
)
787787
or
788788
forex(PostUpdateNode pun, Content d |
789-
d.impliesClearOf(c) and storeStepImpl(_, d, pun, true) and pun.getPreUpdateNode() = n
789+
pragma[only_bind_into](d).impliesClearOf(pragma[only_bind_into](c)) and
790+
storeStepImpl(_, d, pun, true) and
791+
pun.getPreUpdateNode() = n
790792
|
791793
c.getIndirectionIndex() = d.getIndirectionIndex()
792794
)

0 commit comments

Comments
 (0)