Skip to content

Commit 42843f1

Browse files
authored
Merge pull request #22159 from aschackmull/java/join-order-effnonvirt
Java: Improve join order.
2 parents 2656b5d + 33261f4 commit 42843f1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

java/ql/lib/semmle/code/java/ControlFlowGraph.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,9 @@ private module NonReturningCalls {
406406
}
407407

408408
/** Gets a `MethodCall` that calls this method. */
409-
MethodCall getAnAccess() { result.getMethod().getAPossibleImplementation() = this }
409+
MethodCall getAnAccess() {
410+
result.getMethod().getAPossibleImplementation() = pragma[only_bind_out](this)
411+
}
410412
}
411413

412414
/** Holds if a call to `m` indicates that `m` is expected to return. */

0 commit comments

Comments
 (0)