Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1254)

Unified Diff: test/unittests/compiler/register-allocator-unittest.cc

Issue 2433093002: MIPS: Fix bad RegisterConfiguration usage in InstructionSequence unit tests. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/unittests/compiler/register-allocator-unittest.cc
diff --git a/test/unittests/compiler/register-allocator-unittest.cc b/test/unittests/compiler/register-allocator-unittest.cc
index 22b1b4448570a1ace42a0de35fbbae45ac0cef2f..16dd73e7f86b58e35eb0c85862eead541e4de540 100644
--- a/test/unittests/compiler/register-allocator-unittest.cc
+++ b/test/unittests/compiler/register-allocator-unittest.cc
@@ -320,11 +320,11 @@ TEST_F(RegisterAllocatorTest, SpillPhi) {
EndBlock(Branch(Imm(), 1, 2));
StartBlock();
- auto left = Define(Reg(0));
+ auto left = Define(Reg(GetAllocatableCode(0)));
ivica.bogosavljevic 2016/10/19 14:30:40 I guess the same thing should be done everywhere.
EndBlock(Jump(2));
StartBlock();
- auto right = Define(Reg(0));
+ auto right = Define(Reg(GetAllocatableCode(0)));
EndBlock();
StartBlock();

Powered by Google App Engine
This is Rietveld 408576698