Skip to content

Commit bbb9396

Browse files
committed
C++: Improvement in Overflow.qll.
1 parent 0ee73cc commit bbb9396

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/ql/src/semmle/code/cpp/security/Overflow.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ predicate guardedAbs(Operation e, Expr use) {
1717
}
1818

1919
/**
20-
* Gets the result of `BasicBlock.getNode`, but only on a `Stmt` (for
21-
* performance).
20+
* Gets the position of `stmt` in basic block `block` (this is a thin layer
21+
* over `BasicBlock.getNode`, intended to improve performance).
2222
*/
2323
pragma[noinline]
2424
private int getStmtIndexInBlock(BasicBlock block, Stmt stmt) { block.getNode(result) = stmt }

0 commit comments

Comments
 (0)