File tree Expand file tree Collapse file tree
cpp/ql/src/Likely Bugs/Memory Management Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ class LoopWithAlloca extends Stmt {
210210 // Phi nodes will be preceded by nodes that represent actual definitions
211211 not result instanceof DataFlow:: SsaPhiNode and
212212 // A source is outside the loop if it's not inside the loop
213- not exists ( Expr e | e = getExpr ( result ) | this = getAnEnclosingLoopOfExpr ( e ) )
213+ not exists ( Expr e | e = this . getExpr ( result ) | this = getAnEnclosingLoopOfExpr ( e ) )
214214 )
215215 }
216216
@@ -221,9 +221,9 @@ class LoopWithAlloca extends Stmt {
221221 private int getAControllingVarInitialValue ( Variable var , DataFlow:: Node source ) {
222222 source = this .getAPrecedingDef ( var ) and
223223 (
224- result = getExpr ( source ) .getValue ( ) .toInt ( )
224+ result = this . getExpr ( source ) .getValue ( ) .toInt ( )
225225 or
226- result = getExpr ( source ) .( Assignment ) .getRValue ( ) .getValue ( ) .toInt ( )
226+ result = this . getExpr ( source ) .( Assignment ) .getRValue ( ) .getValue ( ) .toInt ( )
227227 )
228228 }
229229
You can’t perform that action at this time.
0 commit comments