Make aliasing an alias def an internal error.

I haven't seen the bug message show up, so it seems safe, and is probably a
good idea with what I have in mind.
This commit is contained in:
Bill Currie 2012-12-03 11:36:14 +09:00
parent cd64c0ad9b
commit 9ca5a9e86c

View file

@ -154,7 +154,7 @@ alias_def (def_t *def, type_t *type)
expr_t e;
e.file = def->file;
e.line = def->line;
bug (&e, "aliasing an alias def");
internal_error (&e, "aliasing an alias def");
}
ALLOC (16384, def_t, defs, alias);
alias->return_addr = __builtin_return_address (0);