diff options
| author | 2017-07-27 17:02:31 +0000 | |
|---|---|---|
| committer | 2017-07-27 17:02:31 +0000 | |
| commit | 67abbca7cf23ef8b5c0aded0cd0a20765ff47cf2 (patch) | |
| tree | 14eda472e47c476cc94f04283bc9eb7dba31c1c7 /compiler/driver/compiler_driver.cc | |
| parent | 078a27af849f55fc903da8f291315504618f2207 (diff) | |
| parent | b45528c1f1b83ca8c970f439b54fbfcfda6908ea (diff) | |
Merge "ART: Refactor retrieval of types through ArtMethod."
Diffstat (limited to 'compiler/driver/compiler_driver.cc')
| -rw-r--r-- | compiler/driver/compiler_driver.cc | 5 |
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; |