mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
script optimization fix for complex "in" expressions in conditionals
This commit is contained in:
parent
42bf164dc4
commit
a947d96160
1 changed files with 3 additions and 0 deletions
|
@ -115,6 +115,9 @@ bool Expr::IsReducedConditional(Reducer* c) const {
|
||||||
return NonReduced(this);
|
return NonReduced(this);
|
||||||
|
|
||||||
if ( op1->Tag() == EXPR_LIST ) {
|
if ( op1->Tag() == EXPR_LIST ) {
|
||||||
|
if ( ! op1->IsReduced(c) )
|
||||||
|
return NonReduced(this);
|
||||||
|
|
||||||
auto l1 = op1->AsListExpr();
|
auto l1 = op1->AsListExpr();
|
||||||
auto& l1_e = l1->Exprs();
|
auto& l1_e = l1->Exprs();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue