mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Java: Improve performance of isUnreachableInCall()
This commit is contained in:
@@ -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())
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user