Index: src/arm/lithium-arm.cc |
diff --git a/src/arm/lithium-arm.cc b/src/arm/lithium-arm.cc |
index df420639a6a7f9cbc29219da24b6fee35f7c1cc9..3e933b08681f9991ad9473f5180adc4331156433 100644 |
--- a/src/arm/lithium-arm.cc |
+++ b/src/arm/lithium-arm.cc |
@@ -1459,7 +1459,8 @@ LInstruction* LChunkBuilder::DoMod(HMod* instr) { |
} |
if (instr->CheckFlag(HValue::kBailoutOnMinusZero) || |
- instr->CheckFlag(HValue::kCanBeDivByZero)) { |
+ instr->CheckFlag(HValue::kCanBeDivByZero) || |
+ instr->CheckFlag(HValue::kCanOverflow)) { |
return AssignEnvironment(DefineAsRegister(mod)); |
} else { |
return DefineAsRegister(mod); |