(Slightly) better errors on phi congruence group mismatches.

This commit is contained in:
David Given 2018-09-05 23:53:08 +02:00
parent 7fbce066f8
commit fc0b0ae178

View file

@ -37,7 +37,9 @@ static void recursively_associate_group(struct phicongruence* c, struct vreg* vr
if (c->type == 0)
c->type = vreg->type;
assert(c->type == vreg->type);
if (c->type != vreg->type)
fatal("tried to add register %%%d of type 0x%x to a phi congruence group of type 0x%x",
vreg->id, vreg->type, c->type);
array_appendu(&c->definitions, vreg->defined);
}