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 ab3e578a53
commit c404ead360

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;
}