diff options
Diffstat (limited to 'compiler/optimizing/induction_var_range.cc')
-rw-r--r-- | compiler/optimizing/induction_var_range.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/induction_var_range.cc b/compiler/optimizing/induction_var_range.cc index 663cbaf2de..7cc8b1ea4c 100644 --- a/compiler/optimizing/induction_var_range.cc +++ b/compiler/optimizing/induction_var_range.cc @@ -862,7 +862,7 @@ bool InductionVarRange::GenerateCode(HInductionVarAnalysis::InductionInfo* info, } // Verify type safety. Primitive::Type type = Primitive::kPrimInt; - if (info->type != type) { + if (info->type != Primitive::kPrimInt && info->type != Primitive::kPrimBoolean) { return false; } // Handle current operation. |