summaryrefslogtreecommitdiff
path: root/compiler/optimizing
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2017-10-17 10:58:42 +0100
committer Nicolas Geoffray <ngeoffray@google.com> 2017-10-17 10:58:42 +0100
commit003444a288ea73812fad96fda09b7592f283ec80 (patch)
tree512f3fae1083a482d553b931ffa62fa452b46d64 /compiler/optimizing
parentb73cc5dece8bf95935e03ff86b9a314872886299 (diff)
Fix braino in BoundsCheckSlowPathX86_64.
No need to call AsArrayLength again. Test: build Change-Id: Id8dac5903646a2491d67f361ca8b384092a51e0f
Diffstat (limited to 'compiler/optimizing')
-rw-r--r--compiler/optimizing/code_generator_x86_64.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/code_generator_x86_64.cc b/compiler/optimizing/code_generator_x86_64.cc
index b07949fe97..6de5e9cd4d 100644
--- a/compiler/optimizing/code_generator_x86_64.cc
+++ b/compiler/optimizing/code_generator_x86_64.cc
@@ -196,7 +196,7 @@ class BoundsCheckSlowPathX86_64 : public SlowPathCode {
if (array_length->IsArrayLength() && array_length->IsEmittedAtUseSite()) {
// Load the array length into our temporary.
HArrayLength* length = array_length->AsArrayLength();
- uint32_t len_offset = CodeGenerator::GetArrayLengthOffset(length->AsArrayLength());
+ uint32_t len_offset = CodeGenerator::GetArrayLengthOffset(length);
Location array_loc = array_length->GetLocations()->InAt(0);
Address array_len(array_loc.AsRegister<CpuRegister>(), len_offset);
length_loc = Location::RegisterLocation(calling_convention.GetRegisterAt(1));