diff options
| author | 2016-02-18 16:33:37 +0000 | |
|---|---|---|
| committer | 2016-02-18 16:33:37 +0000 | |
| commit | 1d01ef7f0f79b032449c35203ca9543fb8a0b22f (patch) | |
| tree | 78e44decc10d0155ddec585bba5500451e2daacb /compiler/driver/compiler_driver-inl.h | |
| parent | afe84004583488ded7f99bb703ed4c1a601ff034 (diff) | |
| parent | e4084a5eb46dc6b99c0e0b74bcdecccaceb28fe7 (diff) | |
Merge "Small inlining improvements."
Diffstat (limited to 'compiler/driver/compiler_driver-inl.h')
| -rw-r--r-- | compiler/driver/compiler_driver-inl.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/compiler/driver/compiler_driver-inl.h b/compiler/driver/compiler_driver-inl.h index 0d65bc7405..3cb63e7082 100644 --- a/compiler/driver/compiler_driver-inl.h +++ b/compiler/driver/compiler_driver-inl.h @@ -186,13 +186,7 @@ inline std::pair<bool, bool> CompilerDriver::IsClassOfStaticMemberAvailableToRef } else { // Search dex file for localized ssb index, may fail if member's class is a parent // of the class mentioned in the dex file and there is no dex cache entry. - std::string temp; - const DexFile::TypeId* type_id = - dex_file->FindTypeId(resolved_member->GetDeclaringClass()->GetDescriptor(&temp)); - if (type_id != nullptr) { - // medium path, needs check of static storage base being initialized - storage_idx = dex_file->GetIndexForTypeId(*type_id); - } + storage_idx = resolved_member->GetDeclaringClass()->FindTypeIndexInOtherDexFile(*dex_file); } if (storage_idx != DexFile::kDexNoIndex) { *storage_index = storage_idx; |