mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
Allow taking the address of a temporary variable
This commit is contained in:
parent
e27da9c7db
commit
ebab6574b9
1 changed files with 3 additions and 0 deletions
|
@ -2219,6 +2219,9 @@ address_expr (expr_t *e1, expr_t *e2, type_t *t)
|
|||
return e1;
|
||||
case ex_label:
|
||||
return new_label_ref (&e1->e.label);
|
||||
case ex_temp:
|
||||
e = new_unary_expr ('&', e1);
|
||||
break;
|
||||
default:
|
||||
return error (e1, "invalid type for unary &");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue