mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 13:08:20 +00:00
support for discarding ASTs once compiled via ZAM script optimization
This commit is contained in:
parent
79c53c9ed6
commit
91d70e6dd4
13 changed files with 55 additions and 17 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue