| Index: src/hydrogen-instructions.cc
|
| diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc
|
| index a3436ed94d771602947fade2df9eacdca9237e82..66255f28eaf1d5406b57aa22a11472e7434227f6 100644
|
| --- a/src/hydrogen-instructions.cc
|
| +++ b/src/hydrogen-instructions.cc
|
| @@ -2230,7 +2230,9 @@ int32_t InductionVariableData::ComputeIncrement(HPhi* phi,
|
| HSub* operation = HSub::cast(phi_operand);
|
| if (operation->left() == phi &&
|
| operation->right()->IsInteger32Constant()) {
|
| - return -operation->right()->GetInteger32Constant();
|
| + int constant = operation->right()->GetInteger32Constant();
|
| + if (constant == kMinInt) return 0;
|
| + return -constant;
|
| }
|
| }
|
|
|
|
|