Index: src/hydrogen-instructions.cc |
diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc |
index d46ae2fd02b5066ccf5929b0d5491403eee5f23f..a05fa204252993b1b29b51c11747120f76845146 100644 |
--- a/src/hydrogen-instructions.cc |
+++ b/src/hydrogen-instructions.cc |
@@ -1342,6 +1342,11 @@ Range* HMod::InferRange(Zone* zone) { |
if (a->CanBeMinusZero() || a->CanBeNegative()) { |
result->set_can_be_minus_zero(true); |
} |
+ |
+ if (right()->range()->Includes(-1) && left()->range()->Includes(kMinInt)) { |
+ SetFlag(HValue::kCanOverflow); |
+ } |
+ |
if (!right()->range()->CanBeZero()) { |
ClearFlag(HValue::kCanBeDivByZero); |
} |