mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
CPP: cached -> pragma[nomagic].
This commit is contained in:
@@ -55,7 +55,7 @@ predicate allocExprOrIndirect(Expr alloc, string kind) {
|
||||
* Holds if `v` is a non-local variable which is assigned with allocations of
|
||||
* type `kind`.
|
||||
*/
|
||||
private cached predicate allocReachesVariable(Variable v, Expr alloc, string kind) {
|
||||
private pragma[nomagic] predicate allocReachesVariable(Variable v, Expr alloc, string kind) {
|
||||
exists(Expr mid |
|
||||
not v instanceof LocalScopeVariable and
|
||||
v.getAnAssignedValue() = mid and
|
||||
|
||||
Reference in New Issue
Block a user