From 277ff719f5929e2494360376fa5656ffe054bb95 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 14 Mar 2020 12:30:18 +0900 Subject: [PATCH] Revert "Do not lose the block expression when taking its address." This reverts commit b49d90e769e6f936795379ed643aa91f55561610. 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. --- tools/qfcc/source/expr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/qfcc/source/expr.c b/tools/qfcc/source/expr.c index 734886f9a..70e4b2076 100644 --- a/tools/qfcc/source/expr.c +++ b/tools/qfcc/source/expr.c @@ -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: