Index: src/arm/lithium-arm.cc |
diff --git a/src/arm/lithium-arm.cc b/src/arm/lithium-arm.cc |
index 7f504ea4ad4452d7da59d63bb192172fd021abee..d3ac5e0dfebf67c4ed54481d8669852b842c1c83 100644 |
--- a/src/arm/lithium-arm.cc |
+++ b/src/arm/lithium-arm.cc |
@@ -1373,9 +1373,8 @@ LInstruction* LChunkBuilder::DoDiv(HDiv* instr) { |
if (instr->HasPowerOf2Divisor()) { |
ASSERT(!instr->CheckFlag(HValue::kCanBeDivByZero)); |
LOperand* value = UseRegisterAtStart(instr->left()); |
- LDivI* div = |
- new(zone()) LDivI(value, UseOrConstant(instr->right()), NULL); |
- return AssignEnvironment(DefineSameAsFirst(div)); |
+ LDivI* div = new(zone()) LDivI(value, UseConstant(instr->right()), NULL); |
+ return AssignEnvironment(DefineAsRegister(div)); |
} |
LOperand* dividend = UseRegister(instr->left()); |
LOperand* divisor = UseRegister(instr->right()); |