Index: src/hydrogen-bce.cc |
diff --git a/src/hydrogen-bce.cc b/src/hydrogen-bce.cc |
index 18bd0affb6ee2d2ba7a29e6000f576cc23352784..3bf8e9f03904c76ca9ee406cf5a4dbfed517148b 100644 |
--- a/src/hydrogen-bce.cc |
+++ b/src/hydrogen-bce.cc |
@@ -56,7 +56,8 @@ class BoundsCheckKey : public ZoneObject { |
constant = HConstant::cast(check->index()); |
} |
- if (constant != NULL && constant->HasInteger32Value()) { |
+ if (constant != NULL && constant->HasInteger32Value() && |
+ constant->Integer32Value() != kMinInt) { |
*offset = is_sub ? - constant->Integer32Value() |
: constant->Integer32Value(); |
} else { |