Skip to content

Commit a981350

Browse files
authored
Merge pull request github#3400 from jbj/fieldFlow-join-order
C++: Fix fieldFlow join order
2 parents 2b0ad2d + 50b0d42 commit a981350

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowUtil.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ private module FieldFlow {
655655
exists(FieldConfiguration cfg | cfg.hasFlow(node1, node2)) and
656656
// This configuration should not be able to cross function boundaries, but
657657
// we double-check here just to be sure.
658-
node1.getFunction() = node2.getFunction()
658+
node1.getEnclosingCallable() = node2.getEnclosingCallable()
659659
}
660660
}
661661

0 commit comments

Comments
 (0)