Fixed evaluation flags propagation to subexpressions in assignments and function calls.

This commit is contained in:
acqn
2020-08-31 20:33:58 +08:00
committed by Oliver Schmidt
parent 2379504449
commit fb6bc275bc
3 changed files with 19 additions and 15 deletions

View File

@@ -136,10 +136,11 @@ static int CopyStruct (ExprDesc* LExpr, ExprDesc* RExpr)
void Assignment (ExprDesc* Expr)
/* Parse an assignment */
{
ExprDesc Expr2;
Type* ltype = Expr->Type;
ExprDesc Expr2;
ED_Init (&Expr2);
Expr2.Flags |= Expr->Flags & E_MASK_KEEP_SUBEXPR;
/* We must have an lvalue for an assignment */
if (ED_IsRVal (Expr)) {