Bug 1068725: Use actual input's type for a move when reifying allocations with backtracking regalloc; r=sunfish

This commit is contained in:
Benjamin Bouvier 2014-09-30 11:33:17 +02:00
parent 4a83ef1127
commit a1bb30a61f

View File

@ -1128,7 +1128,7 @@ BacktrackingAllocator::reifyAllocations()
if (*res != *alloc) {
LMoveGroup *group = getInputMoveGroup(inputOf(ins));
if (!group->addAfter(sourceAlloc, res, def->type()))
if (!group->addAfter(sourceAlloc, res, reg->type()))
return false;
*alloc = *res;
}