| Index: src/compiler/typer.cc
|
| diff --git a/src/compiler/typer.cc b/src/compiler/typer.cc
|
| index ce70801090f9a8b551ea69daf956d64724258700..28e6d4cf313275d88ba2bca3515dd018a3190552 100644
|
| --- a/src/compiler/typer.cc
|
| +++ b/src/compiler/typer.cc
|
| @@ -649,7 +649,8 @@ Type* Typer::Visitor::TypeInductionVariablePhi(Node* node) {
|
| }
|
| // If we do not have enough type information for the initial value or
|
| // the increment, just return the initial value's type.
|
| - if (!initial_type->IsInhabited() || !increment_type->IsInhabited()) {
|
| + if (!initial_type->IsInhabited() ||
|
| + increment_type->Is(typer_->cache_.kSingletonZero)) {
|
| return initial_type;
|
| }
|
|
|
|
|