Index: test/compiler-unittests/instruction-selector-unittest.cc |
diff --git a/test/compiler-unittests/instruction-selector-unittest.cc b/test/compiler-unittests/instruction-selector-unittest.cc |
index 27241898a7beaa013a666d00e4d5d2189f835fbb..e53be7ede1bcfbd44ba18e7978c5d16d369c0efc 100644 |
--- a/test/compiler-unittests/instruction-selector-unittest.cc |
+++ b/test/compiler-unittests/instruction-selector-unittest.cc |
@@ -186,18 +186,15 @@ TARGET_TEST_P(InstructionSelectorFinishTest, Parameter) { |
EXPECT_EQ(kArchNop, s[0]->arch_opcode()); |
ASSERT_EQ(1U, s[0]->OutputCount()); |
ASSERT_TRUE(s[0]->Output()->IsUnallocated()); |
- EXPECT_EQ(param->id(), |
- UnallocatedOperand::cast(s[0]->Output())->virtual_register()); |
+ EXPECT_EQ(param->id(), s.ToVreg(s[0]->Output())); |
EXPECT_EQ(kArchNop, s[1]->arch_opcode()); |
ASSERT_EQ(1U, s[1]->InputCount()); |
ASSERT_TRUE(s[1]->InputAt(0)->IsUnallocated()); |
- EXPECT_EQ(param->id(), |
- UnallocatedOperand::cast(s[1]->InputAt(0))->virtual_register()); |
+ EXPECT_EQ(param->id(), s.ToVreg(s[1]->InputAt(0))); |
ASSERT_EQ(1U, s[1]->OutputCount()); |
ASSERT_TRUE(s[1]->Output()->IsUnallocated()); |
EXPECT_TRUE(UnallocatedOperand::cast(s[1]->Output())->HasSameAsInputPolicy()); |
- EXPECT_EQ(finish->id(), |
- UnallocatedOperand::cast(s[1]->Output())->virtual_register()); |
+ EXPECT_EQ(finish->id(), s.ToVreg(s[1]->Output())); |
} |