Fixed rvalue-ness of cast results.

This commit is contained in:
acqn
2020-08-15 06:27:11 +08:00
committed by Oliver Schmidt
parent 63fa9a5a42
commit d1995fc81a

View File

@@ -370,4 +370,7 @@ void TypeCast (ExprDesc* Expr)
Error ("Arithmetic or pointer type expected but %s is used",
GetBasicTypeName (NewType));
}
/* The result is always an rvalue */
ED_MarkExprAsRVal (Expr);
}