mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Support taking the address of block expressions that have a result.
This commit is contained in:
parent
993d05b3d3
commit
c78d15b331
1 changed files with 4 additions and 0 deletions
|
@ -2129,6 +2129,10 @@ address_expr (expr_t *e1, expr_t *e2, type_t *t)
|
|||
return address_expr (e1->e.expr.e1, e2, t);
|
||||
}
|
||||
return error (e1, "invalid type for unary &");
|
||||
case ex_block:
|
||||
if (!e1->e.block.result)
|
||||
return error (e1, "invalid type for unary &");
|
||||
return address_expr (e1->e.block.result, e2, t);
|
||||
default:
|
||||
return error (e1, "invalid type for unary &");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue