mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
C++: Improvement in Overflow.qll.
This commit is contained in:
@@ -17,8 +17,8 @@ predicate guardedAbs(Operation e, Expr use) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the result of `BasicBlock.getNode`, but only on a `Stmt` (for
|
||||
* performance).
|
||||
* Gets the position of `stmt` in basic block `block` (this is a thin layer
|
||||
* over `BasicBlock.getNode`, intended to improve performance).
|
||||
*/
|
||||
pragma[noinline]
|
||||
private int getStmtIndexInBlock(BasicBlock block, Stmt stmt) { block.getNode(result) = stmt }
|
||||
|
||||
Reference in New Issue
Block a user