| Index: test/unittests/compiler/instruction-selector-unittest.cc
|
| diff --git a/test/unittests/compiler/instruction-selector-unittest.cc b/test/unittests/compiler/instruction-selector-unittest.cc
|
| index d3cf985939415d2602bc21052aede1cb84473e9c..2aca43219035ae4527661dfd3c321fe4b1d3e613 100644
|
| --- a/test/unittests/compiler/instruction-selector-unittest.cc
|
| +++ b/test/unittests/compiler/instruction-selector-unittest.cc
|
| @@ -127,8 +127,7 @@ bool InstructionSelectorTest::Stream::IsFixed(const InstructionOperand* operand,
|
| if (!operand->IsUnallocated()) return false;
|
| const UnallocatedOperand* unallocated = UnallocatedOperand::cast(operand);
|
| if (!unallocated->HasFixedRegisterPolicy()) return false;
|
| - const int index = Register::ToAllocationIndex(reg);
|
| - return unallocated->fixed_register_index() == index;
|
| + return unallocated->fixed_register_index() == reg.code();
|
| }
|
|
|
|
|
|
|