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.
This commit is contained in:
Bill Currie 2020-02-15 15:32:01 +09:00
parent 3257e7145b
commit ce9902baed
1 changed files with 0 additions and 2 deletions

View File

@ -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')