mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +00:00
Do not lose the block expression when taking its address.
This commit is contained in:
parent
c78d15b331
commit
b49d90e769
1 changed files with 2 additions and 1 deletions
|
@ -2132,7 +2132,8 @@ 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 &");
|
||||
return address_expr (e1->e.block.result, e2, t);
|
||||
e1->e.block.result = address_expr (e1->e.block.result, e2, t);
|
||||
return e1;
|
||||
default:
|
||||
return error (e1, "invalid type for unary &");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue