Merge pull request #7566 from MathiasVP/smaller-join-in-reachesRefParameter

C++: Smaller join in `reachesRefParameter`
This commit is contained in:
Robert Marsh
2022-01-12 10:04:35 -05:00
committed by GitHub

View File

@@ -435,7 +435,7 @@ module FlowVar_internal {
parameterIsNonConstReference(p) and
p = v and
// This definition reaches the exit node of the function CFG
getAReachedBlockVarSBB(this).getANode() = p.getFunction()
getAReachedBlockVarSBB(this).getEnd() = p.getFunction()
}
override predicate definedByInitialValue(StackVariable lsv) {