| Index: src/compiler/register-allocator.cc
|
| diff --git a/src/compiler/register-allocator.cc b/src/compiler/register-allocator.cc
|
| index 342615e140127aa94f48ef41ac47f46e7ef3bdd0..2cf2e8f583562bf9c4798254dc086357c757c4c8 100644
|
| --- a/src/compiler/register-allocator.cc
|
| +++ b/src/compiler/register-allocator.cc
|
| @@ -819,11 +819,11 @@ void RegisterAllocator::MeetConstraintsBetween(Instruction* first,
|
|
|
| // Handle "output same as input" for second instruction.
|
| for (size_t i = 0; i < second->OutputCount(); i++) {
|
| - InstructionOperand* output = second->Output();
|
| + InstructionOperand* output = second->OutputAt(i);
|
| if (!output->IsUnallocated()) continue;
|
| UnallocatedOperand* second_output = UnallocatedOperand::cast(output);
|
| if (second_output->HasSameAsInputPolicy()) {
|
| - ASSERT(second->OutputCount() == 1); // Only valid for one output.
|
| + ASSERT(i == 0); // Only valid for first output.
|
| UnallocatedOperand* cur_input =
|
| UnallocatedOperand::cast(second->InputAt(0));
|
| int output_vreg = second_output->virtual_register();
|
|
|