From ce9902baed172b69b3cdcb4dd83afeba9c8240c5 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 15 Feb 2020 15:32:01 +0900 Subject: [PATCH] Don't short-circuit aliased values Not sure why I thought it was a good idea as it turns out this is why cast pointer initializers were being lost. --- tools/qfcc/source/expr.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/qfcc/source/expr.c b/tools/qfcc/source/expr.c index 013d55d81..842da5ad8 100644 --- a/tools/qfcc/source/expr.c +++ b/tools/qfcc/source/expr.c @@ -1050,8 +1050,6 @@ new_alias_expr (type_t *type, expr_t *expr) { expr_t *alias; - if (expr->type == ex_value) - return new_value_expr (alias_value (expr->e.value, type)); alias = new_unary_expr ('A', expr); alias->e.expr.type = type; //if (expr->type == ex_uexpr && expr->e.expr.op == 'A')