Skip to content

Commit be45314

Browse files
authored
Merge pull request #8730 from geoffw0/reachesperf
C++: Better join order for reachesWithoutAssignment.
2 parents 05f0991 + dcbd5dd commit be45314

File tree

1 file changed

+1
-1
lines changed
  • cpp/ql/lib/semmle/code/cpp/dataflow/internal

1 file changed

+1
-1
lines changed

cpp/ql/lib/semmle/code/cpp/dataflow/internal/FlowVar.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ module FlowVar_internal {
549549
bb = this.(Loop).getStmt() and
550550
v = this.getARelevantVariable()
551551
or
552-
this.reachesWithoutAssignment(bb.getAPredecessor(), v) and
552+
this.reachesWithoutAssignment(pragma[only_bind_out](bb.getAPredecessor()), v) and
553553
this.bbInLoop(bb)
554554
) and
555555
not assignsToVar(bb, v)

0 commit comments

Comments
 (0)