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.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/bounds_check_elimination.cc b/compiler/optimizing/bounds_check_elimination.cc
index 6f67662fe4..a8149f9163 100644
--- a/compiler/optimizing/bounds_check_elimination.cc
+++ b/compiler/optimizing/bounds_check_elimination.cc
@@ -1072,7 +1072,7 @@ class BCEVisitor : public HGraphVisitor {
const_divisor = (1LL << n) - 1;
}
- if (div == nullptr || !IsInt64Value(div->GetRight()->AsConstant(), const_divisor) ||
+ if (div == nullptr || !IsInt64Value(div->GetRight(), const_divisor) ||
div->GetLeft() != instruction->GetLeft()) {
return false;
}