summaryrefslogtreecommitdiff
path: root/compiler/driver/compiler_driver.cc
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2017-07-27 17:02:31 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2017-07-27 17:02:31 +0000
commit67abbca7cf23ef8b5c0aded0cd0a20765ff47cf2 (patch)
tree14eda472e47c476cc94f04283bc9eb7dba31c1c7 /compiler/driver/compiler_driver.cc
parent078a27af849f55fc903da8f291315504618f2207 (diff)
parentb45528c1f1b83ca8c970f439b54fbfcfda6908ea (diff)
Merge "ART: Refactor retrieval of types through ArtMethod."
Diffstat (limited to 'compiler/driver/compiler_driver.cc')
-rw-r--r--compiler/driver/compiler_driver.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/driver/compiler_driver.cc b/compiler/driver/compiler_driver.cc
index 7e31ff0024..341ca59e5c 100644
--- a/compiler/driver/compiler_driver.cc
+++ b/compiler/driver/compiler_driver.cc
@@ -2452,7 +2452,8 @@ class InitializeClassVisitor : public CompilationVisitor {
bool ResolveTypesOfMethods(Thread* self, ArtMethod* m)
REQUIRES_SHARED(Locks::mutator_lock_) {
- auto rtn_type = m->GetReturnType(true); // return value is discarded because resolve will be done internally.
+ // Return value of ResolveReturnType() is discarded because resolve will be done internally.
+ ObjPtr<mirror::Class> rtn_type = m->ResolveReturnType();
if (rtn_type == nullptr) {
self->ClearException();
return false;
@@ -2461,7 +2462,7 @@ class InitializeClassVisitor : public CompilationVisitor {
if (types != nullptr) {
for (uint32_t i = 0; i < types->Size(); ++i) {
dex::TypeIndex param_type_idx = types->GetTypeItem(i).type_idx_;
- auto param_type = m->GetClassFromTypeIndex(param_type_idx, true);
+ ObjPtr<mirror::Class> param_type = m->ResolveClassFromTypeIndex(param_type_idx);
if (param_type == nullptr) {
self->ClearException();
return false;