Make expression alias chains not-a-bug.

The common cause seems to be casting a cast (very common, and I'm not sure
just realiasing the expression would be right). It does't cause any harm
(particularly, it doesn't trigger alias def chains), so I won't worry about
it.
This commit is contained in:
Bill Currie 2012-05-03 13:57:31 +09:00
parent 006882407d
commit 78a9ba2557

View file

@ -870,8 +870,8 @@ new_alias_expr (type_t *type, expr_t *expr)
alias = new_unary_expr ('A', expr);
alias->e.expr.type = type;
if (expr->type == ex_uexpr && expr->e.expr.op == 'A')
bug (alias, "aliasing an alias expression");
//if (expr->type == ex_uexpr && expr->e.expr.op == 'A')
// bug (alias, "aliasing an alias expression");
alias->file = expr->file;
alias->line = expr->line;
return alias;