support for discarding ASTs once compiled via ZAM script optimization

This commit is contained in:
Vern Paxson 2023-07-20 09:39:05 -07:00
parent 79c53c9ed6
commit 91d70e6dd4
13 changed files with 55 additions and 17 deletions

View file

@ -1096,7 +1096,7 @@ const ZAMStmt ZAMCompiler::DoCall(const CallExpr* c, const NameExpr* n)
z.aux->can_change_non_locals = true;
z.call_expr = c;
z.call_expr = {NewRef{}, const_cast<CallExpr*>(c)};
if ( in_when )
z.SetType(n->GetType());