Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9ce2f7 commit 56fe91dCopy full SHA for 56fe91d
1 file changed
cpp/ql/src/Critical/NewDelete.qll
@@ -55,7 +55,7 @@ predicate allocExprOrIndirect(Expr alloc, string kind) {
55
* Holds if `v` is a non-local variable which is assigned with allocations of
56
* type `kind`.
57
*/
58
-private cached predicate allocReachesVariable(Variable v, Expr alloc, string kind) {
+private pragma[nomagic] predicate allocReachesVariable(Variable v, Expr alloc, string kind) {
59
exists(Expr mid |
60
not v instanceof LocalScopeVariable and
61
v.getAnAssignedValue() = mid and
0 commit comments