Index: src/arm/lithium-arm.cc |
diff --git a/src/arm/lithium-arm.cc b/src/arm/lithium-arm.cc |
index 569d2954d7ea8cffd8911123cfa53d421d550c89..283862c78762ca48a7fe68bd6dd6f9fa76b9900b 100644 |
--- a/src/arm/lithium-arm.cc |
+++ b/src/arm/lithium-arm.cc |
@@ -1710,10 +1710,9 @@ LInstruction* LChunkBuilder::DoChange(HChange* instr) { |
} else { |
ASSERT(to.IsInteger32()); |
LOperand* value = UseRegisterAtStart(instr->value()); |
- bool needs_check = !instr->value()->type().IsSmi(); |
LInstruction* res = NULL; |
- if (!needs_check) { |
- res = DefineAsRegister(new(zone()) LSmiUntag(value, needs_check)); |
+ if (instr->value()->type().IsSmi()) { |
+ res = DefineAsRegister(new(zone()) LSmiUntag(value, false)); |
} else { |
LOperand* temp1 = TempRegister(); |
LOperand* temp2 = instr->CanTruncateToInt32() ? TempRegister() |