mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
fixed AST transformation logic for boolean expressions
This commit is contained in:
parent
9496379b95
commit
a82a0e22d8
1 changed files with 1 additions and 7 deletions
|
@ -1056,13 +1056,7 @@ ExprPtr BoolExpr::Duplicate()
|
|||
|
||||
bool BoolExpr::WillTransform(Reducer* c) const
|
||||
{
|
||||
if ( op1->IsConst() || (op1->HasNoSideEffects() && op2->IsConst()) )
|
||||
return true;
|
||||
|
||||
if ( IsVector(op1->GetType()->Tag()) )
|
||||
return false;
|
||||
|
||||
return WillTransformInConditional(c);
|
||||
return ! IsVector(op1->GetType()->Tag());
|
||||
}
|
||||
|
||||
bool BoolExpr::WillTransformInConditional(Reducer* c) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue