Java: Improve performance of isUnreachableInCall()

This commit is contained in:
Tom Hvitved
2021-06-02 20:39:05 +02:00
parent 7382b349c2
commit daf2cc3d53

View File

@@ -296,7 +296,9 @@ predicate isUnreachableInCall(Node n, DataFlowCall call) {
// which is used in a guard
param.getAUse() = guard and
// which controls `n` with the opposite value of `arg`
guard.controls(n.asExpr().getBasicBlock(), arg.getBooleanValue().booleanNot())
guard
.controls(n.asExpr().getBasicBlock(),
pragma[only_bind_out](arg.getBooleanValue()).booleanNot())
)
}