Skip to content

Commit 628f92a

Browse files
committed
C++: Fix QL-for-QL warnings
1 parent 69155cb commit 628f92a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cpp/ql/src/Likely Bugs/Memory Management/AllocaInLoop.ql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)