C++: Simple fix.

This commit is contained in:
Geoffrey White
2024-07-31 14:46:25 +01:00
parent c04428dedc
commit 4aea4c0323
3 changed files with 3 additions and 5 deletions

View File

@@ -39,7 +39,7 @@ predicate allocCallOrIndirect(Expr e) {
allocCallOrIndirect(rtn.getExpr())
or
// return variable assigned with alloc
exists(Variable v |
exists(StackVariable v |
v = rtn.getExpr().(VariableAccess).getTarget() and
allocCallOrIndirect(v.getAnAssignedValue()) and
not assignedToFieldOrGlobal(v, _)