Index: src/arm/lithium-arm.cc |
diff --git a/src/arm/lithium-arm.cc b/src/arm/lithium-arm.cc |
index 357c191d817dd209487ff01bbaba11fee55f7761..97722ccfa24876d8671978cbabfc49f5ce8fab64 100644 |
--- a/src/arm/lithium-arm.cc |
+++ b/src/arm/lithium-arm.cc |
@@ -1963,9 +1963,7 @@ LInstruction* LChunkBuilder::DoChange(HChange* instr) { |
LInstruction* LChunkBuilder::DoCheckHeapObject(HCheckHeapObject* instr) { |
LOperand* value = UseRegisterAtStart(instr->value()); |
- LInstruction* result = new(zone()) LCheckNonSmi(value); |
- if (!instr->value()->IsHeapObject()) result = AssignEnvironment(result); |
- return result; |
+ return AssignEnvironment(new(zone()) LCheckNonSmi(value)); |
} |