mirror of
https://github.com/github/codeql.git
synced 2025-12-23 04:06:37 +01:00
Java/Python: Fix some potential performance problems due to transitive deltas.
This commit is contained in:
@@ -17,7 +17,7 @@ class Expr extends Expr_, AstNode {
|
||||
* Whether this expression defines variable `v`
|
||||
* If doing dataflow, then consider using SsaVariable.getDefinition() for more precision.
|
||||
*/
|
||||
predicate defines(Variable v) { this.getASubExpression+().defines(v) }
|
||||
predicate defines(Variable v) { this.getASubExpression().defines(v) }
|
||||
|
||||
/** Whether this expression may have a side effect (as determined purely from its syntax) */
|
||||
predicate hasSideEffects() {
|
||||
|
||||
Reference in New Issue
Block a user