mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
fix for ZAM location tracking - more extensive changes are pending
This commit is contained in:
parent
dc78a94c78
commit
e0736afe4c
1 changed files with 0 additions and 6 deletions
|
@ -1443,8 +1443,6 @@ ExprPtr AssignExpr::Reduce(Reducer* c, StmtPtr& red_stmt) {
|
||||||
StmtPtr rhs_reduce;
|
StmtPtr rhs_reduce;
|
||||||
|
|
||||||
if ( lhs_is_any != rhs_is_any ) {
|
if ( lhs_is_any != rhs_is_any ) {
|
||||||
auto op2_loc = op2->GetLocationInfo();
|
|
||||||
|
|
||||||
ExprPtr red_rhs = op2->ReduceToSingleton(c, rhs_reduce);
|
ExprPtr red_rhs = op2->ReduceToSingleton(c, rhs_reduce);
|
||||||
|
|
||||||
if ( lhs_is_any ) {
|
if ( lhs_is_any ) {
|
||||||
|
@ -1455,15 +1453,11 @@ ExprPtr AssignExpr::Reduce(Reducer* c, StmtPtr& red_stmt) {
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
op2 = make_intrusive<CoerceFromAnyExpr>(red_rhs, t1);
|
op2 = make_intrusive<CoerceFromAnyExpr>(red_rhs, t1);
|
||||||
|
|
||||||
op2->SetLocationInfo(op2_loc);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( t1->Tag() == TYPE_VECTOR && t1->Yield()->Tag() != TYPE_ANY && t2->Yield() && t2->Yield()->Tag() == TYPE_ANY ) {
|
if ( t1->Tag() == TYPE_VECTOR && t1->Yield()->Tag() != TYPE_ANY && t2->Yield() && t2->Yield()->Tag() == TYPE_ANY ) {
|
||||||
auto op2_loc = op2->GetLocationInfo();
|
|
||||||
ExprPtr red_rhs = op2->ReduceToSingleton(c, rhs_reduce);
|
ExprPtr red_rhs = op2->ReduceToSingleton(c, rhs_reduce);
|
||||||
op2 = make_intrusive<CoerceFromAnyVecExpr>(red_rhs, t1);
|
op2 = make_intrusive<CoerceFromAnyVecExpr>(red_rhs, t1);
|
||||||
op2->SetLocationInfo(op2_loc);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
auto lhs_ref = op1->AsRefExprPtr();
|
auto lhs_ref = op1->AsRefExprPtr();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue