Index: src/mips/lithium-mips.cc |
diff --git a/src/mips/lithium-mips.cc b/src/mips/lithium-mips.cc |
index 7686096740f852c9f4e0ece34fceeff967a4eb4c..edb1206b01e84ff1148d1cc66970d8a5b383ae86 100644 |
--- a/src/mips/lithium-mips.cc |
+++ b/src/mips/lithium-mips.cc |
@@ -868,10 +868,12 @@ void LChunkBuilder::VisitInstruction(HInstruction* current) { |
LInstruction* instr = NULL; |
if (current->CanReplaceWithDummyUses()) { |
- HValue* first_operand = current->OperandCount() == 0 |
- ? graph()->GetConstant1() |
- : current->OperandAt(0); |
- instr = DefineAsRegister(new(zone()) LDummyUse(UseAny(first_operand))); |
+ if (current->OperandCount() == 0) { |
+ instr = DefineAsRegister(new(zone()) LDummy()); |
+ } else { |
+ instr = DefineAsRegister(new(zone()) |
+ LDummyUse(UseAny(current->OperandAt(0)))); |
+ } |
for (int i = 1; i < current->OperandCount(); ++i) { |
LInstruction* dummy = |
new(zone()) LDummyUse(UseAny(current->OperandAt(i))); |