Index: src/arm/lithium-arm.cc |
diff --git a/src/arm/lithium-arm.cc b/src/arm/lithium-arm.cc |
index 14db24ff64e32549b3c2fc7352f24ba8a8c629cc..5fb0e533b86848dafd045a68944039e0fca2eb0b 100644 |
--- a/src/arm/lithium-arm.cc |
+++ b/src/arm/lithium-arm.cc |
@@ -863,10 +863,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))); |