| 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 58946e96d056619e31d5e4bc86ce5a22204bba04..01aa80af7793771d0d0e13f0fd7fa53d0b2c8538 100644
|
| --- a/test/unittests/compiler/instruction-selector-unittest.cc
|
| +++ b/test/unittests/compiler/instruction-selector-unittest.cc
|
| @@ -84,9 +84,12 @@ InstructionSelectorTest::Stream InstructionSelectorTest::StreamBuilder::Build(
|
| InstructionOperand* input = instr->InputAt(i);
|
| EXPECT_NE(InstructionOperand::CONSTANT, input->kind());
|
| if (input->IsImmediate()) {
|
| - int index = ImmediateOperand::cast(input)->index();
|
| - s.immediates_.insert(
|
| - std::make_pair(index, sequence.GetImmediate(index)));
|
| + auto imm = ImmediateOperand::cast(input);
|
| + if (imm->type() == ImmediateOperand::INDEXED) {
|
| + int index = imm->indexed_value();
|
| + s.immediates_.insert(
|
| + std::make_pair(index, sequence.GetImmediate(imm)));
|
| + }
|
| }
|
| }
|
| s.instructions_.push_back(instr);
|
|
|