Fix bug in register allocation.

This commit is contained in:
Marcel Keller
2024-12-17 15:31:36 +11:00
parent fc66e484c3
commit a8ce132733

View File

@@ -750,7 +750,7 @@ unsigned BaseInstruction::get_max_reg(int reg_type) const
{
assert(it < start.end());
int n = *it;
res = max(res, *it++);
res = max(res, *++it + size);
it += n - 1;
}
return res;