summaryrefslogtreecommitdiff
path: root/compiler/optimizing/bounds_check_elimination.cc
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/optimizing/bounds_check_elimination.cc')
-rw-r--r--compiler/optimizing/bounds_check_elimination.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/optimizing/bounds_check_elimination.cc b/compiler/optimizing/bounds_check_elimination.cc
index 919abfdc49..89caf32f25 100644
--- a/compiler/optimizing/bounds_check_elimination.cc
+++ b/compiler/optimizing/bounds_check_elimination.cc
@@ -1378,8 +1378,7 @@ class BCEVisitor final : public HGraphVisitor {
HInstruction* array_length,
HInstruction* base,
int32_t min_c, int32_t max_c) {
- HBoundsCheck* bounds_check =
- first_index_bounds_check_map_.Get(array_length->GetId())->AsBoundsCheck();
+ HBoundsCheck* bounds_check = first_index_bounds_check_map_.Get(array_length->GetId());
// Construct deoptimization on single or double bounds on range [base-min_c,base+max_c],
// for example either for a[0]..a[3] just 3 or for a[base-1]..a[base+3] both base-1
// and base+3, since we made the assumption any in between value may occur too.