Revert "Do not lose the block expression when taking its address."

This reverts commit b49d90e769.

I suspect this was a workaround for the mess in assignment chains.
However, it caused compile errors with the new implementation, and is
just bogus anyway.
This commit is contained in:
Bill Currie 2020-03-14 12:30:18 +09:00
parent 7cc51c9ca3
commit 277ff719f5

View file

@ -2229,8 +2229,7 @@ address_expr (expr_t *e1, expr_t *e2, type_t *t)
case ex_block:
if (!e1->e.block.result)
return error (e1, "invalid type for unary &");
e1->e.block.result = address_expr (e1->e.block.result, e2, t);
return e1;
return address_expr (e1->e.block.result, e2, t);
case ex_label:
return new_label_ref (&e1->e.label);
case ex_temp: