CPP: Simplify.

This commit is contained in:
Geoffrey White
2019-01-29 14:52:54 +00:00
parent 276738a435
commit c87036f2fd

View File

@@ -39,7 +39,7 @@ predicate varMaybeStackAllocated(LocalVariable lv) {
// that possibly points to the stack, or if it is a possibly stack allocated array
// that is converted (implicitly or explicitly) to a pointer
predicate exprMayPointToStack(Expr e) {
e instanceof AddressOfExpr and exprMaybeStackAllocated(e.(AddressOfExpr).getAnOperand())
exprMaybeStackAllocated(e.(AddressOfExpr).getAnOperand())
or
varMayPointToStack(e.(VariableAccess).getTarget())
or