From ebab6574b956fad1437f1394c1b074aaecc7cace Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 8 Jun 2019 13:35:47 +0900 Subject: [PATCH] Allow taking the address of a temporary variable --- tools/qfcc/source/expr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/qfcc/source/expr.c b/tools/qfcc/source/expr.c index 53b17987f..51f302947 100644 --- a/tools/qfcc/source/expr.c +++ b/tools/qfcc/source/expr.c @@ -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 &"); }