diff options
author | 2023-11-22 10:56:55 +0000 | |
---|---|---|
committer | 2023-11-22 12:49:26 +0000 | |
commit | 6aae29eb6e7b4dbe953590c953a84afbc16619a3 (patch) | |
tree | 855e2e2989662ec1665ab60af830fdfa4673d82b /compiler/optimizing/intrinsics.cc | |
parent | b8efdb57ebacb85a5fbdc72ee759586678ef1b96 (diff) |
Address review comments.
For https://android-review.googlesource.com/2835572
Test: test.py
Change-Id: Ia1584de58fe945a46b8f49548e062ce212be0a23
Diffstat (limited to 'compiler/optimizing/intrinsics.cc')
-rw-r--r-- | compiler/optimizing/intrinsics.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/optimizing/intrinsics.cc b/compiler/optimizing/intrinsics.cc index d960d5f212..8330a973ff 100644 --- a/compiler/optimizing/intrinsics.cc +++ b/compiler/optimizing/intrinsics.cc @@ -93,7 +93,7 @@ void IntrinsicVisitor::ComputeValueOfLocations(HInvoke* invoke, return; } HInstruction* const input = invoke->InputAt(0); - if (input->IsConstant()) { + if (input->IsIntConstant()) { int32_t value = input->AsIntConstant()->GetValue(); if (static_cast<uint32_t>(value) - static_cast<uint32_t>(low) < static_cast<uint32_t>(length)) { // No call, we shall use direct pointer to the boxed object. @@ -131,7 +131,7 @@ IntrinsicVisitor::ValueOfInfo IntrinsicVisitor::ComputeValueOfInfo( info.length = length; info.value_offset = value_field->GetOffset().Uint32Value(); if (compiler_options.IsBootImage()) { - if (invoke->InputAt(0)->IsConstant()) { + if (invoke->InputAt(0)->IsIntConstant()) { int32_t input_value = invoke->InputAt(0)->AsIntConstant()->GetValue(); uint32_t index = static_cast<uint32_t>(input_value) - static_cast<uint32_t>(info.low); if (index < static_cast<uint32_t>(info.length)) { |