mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
updates for script optimization
This commit is contained in:
parent
ae75635c5a
commit
18cfee51c2
3 changed files with 115 additions and 28 deletions
|
@ -161,7 +161,8 @@ StmtPtr ExprStmt::DoReduce(Reducer* c)
|
|||
return TransformMe(make_intrusive<NullStmt>(), c);
|
||||
|
||||
if ( (t == EXPR_ASSIGN || t == EXPR_CALL || t == EXPR_INDEX_ASSIGN ||
|
||||
t == EXPR_FIELD_LHS_ASSIGN || t == EXPR_APPEND_TO) &&
|
||||
t == EXPR_FIELD_LHS_ASSIGN || t == EXPR_APPEND_TO || t == EXPR_ADD_TO ||
|
||||
t == EXPR_REMOVE_FROM) &&
|
||||
e->IsReduced(c) )
|
||||
return ThisPtr();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue