Skip to content

Commit 5031d6c

Browse files
authored
Merge pull request #7566 from MathiasVP/smaller-join-in-reachesRefParameter
C++: Smaller join in `reachesRefParameter`
2 parents 3ef6976 + b3a7090 commit 5031d6c

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
@@ -435,7 +435,7 @@ module FlowVar_internal {
435435
parameterIsNonConstReference(p) and
436436
p = v and
437437
// This definition reaches the exit node of the function CFG
438-
getAReachedBlockVarSBB(this).getANode() = p.getFunction()
438+
getAReachedBlockVarSBB(this).getEnd() = p.getFunction()
439439
}
440440

441441
override predicate definedByInitialValue(StackVariable lsv) {

0 commit comments

Comments
 (0)