Index: src/arm64/lithium-arm64.cc |
diff --git a/src/arm64/lithium-arm64.cc b/src/arm64/lithium-arm64.cc |
index fef51c669b0d9d639f90bf7b99feca89037dcdb6..dc28f8d9a284d1f5ab3bd36c8f6fe93b1b1a465d 100644 |
--- a/src/arm64/lithium-arm64.cc |
+++ b/src/arm64/lithium-arm64.cc |
@@ -1203,7 +1203,7 @@ LInstruction* LChunkBuilder::DoChange(HChange* instr) { |
} else if (to.IsSmi()) { |
LOperand* value = UseRegisterAtStart(val); |
LInstruction* result = DefineAsRegister(new(zone()) LSmiTag(value)); |
- if (val->CheckFlag(HInstruction::kUint32)) { |
+ if (instr->CheckFlag(HValue::kCanOverflow)) { |
result = AssignEnvironment(result); |
} |
return result; |