Skip to content

Commit 56fe91d

Browse files
committed
CPP: cached -> pragma[nomagic].
1 parent a9ce2f7 commit 56fe91d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/Critical/NewDelete.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ predicate allocExprOrIndirect(Expr alloc, string kind) {
5555
* Holds if `v` is a non-local variable which is assigned with allocations of
5656
* type `kind`.
5757
*/
58-
private cached predicate allocReachesVariable(Variable v, Expr alloc, string kind) {
58+
private pragma[nomagic] predicate allocReachesVariable(Variable v, Expr alloc, string kind) {
5959
exists(Expr mid |
6060
not v instanceof LocalScopeVariable and
6161
v.getAnAssignedValue() = mid and

0 commit comments

Comments
 (0)