[qfcc] Treat alias nodes in alias-free branch as ICE

This commit is contained in:
Bill Currie 2020-03-29 11:49:07 +09:00
parent 218cca71b8
commit 361b3ff422

View file

@ -551,7 +551,10 @@ const type_t *
unalias_type (const type_t *type)
{
if (type->meta == ty_alias) {
return type->t.alias.aux_type;
type = type->t.alias.aux_type;
if (type->meta == ty_alias) {
internal_error (0, "alias type node in alias-free chain");
}
}
return type;
}