diff options
| -rw-r--r-- | compiler/debug/elf_debug_info_writer.h | 4 | ||||
| -rw-r--r-- | runtime/jit/debugger_interface.cc | 2 | ||||
| -rw-r--r-- | runtime/jit/profile_compilation_info.cc | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/compiler/debug/elf_debug_info_writer.h b/compiler/debug/elf_debug_info_writer.h index 558c7d5754..de32351abf 100644 --- a/compiler/debug/elf_debug_info_writer.h +++ b/compiler/debug/elf_debug_info_writer.h @@ -411,7 +411,7 @@ class ElfCompilationUnitWriter { for (const auto& base_class_reference : base_class_references) { size_t reference_offset = base_class_reference.first; mirror::Class* base_class = base_class_reference.second; - const auto& it = class_declarations.find(base_class); + const auto it = class_declarations.find(base_class); if (it != class_declarations.end()) { info_.UpdateUint32(reference_offset, it->second); } else { @@ -512,7 +512,7 @@ class ElfCompilationUnitWriter { using namespace dwarf; // NOLINT. For easy access to DWARF constants. DCHECK(!desc.empty()); - const auto& it = type_cache_.find(desc); + const auto it = type_cache_.find(desc); if (it != type_cache_.end()) { return it->second; } diff --git a/runtime/jit/debugger_interface.cc b/runtime/jit/debugger_interface.cc index 7cdd7c5f37..ae0004426d 100644 --- a/runtime/jit/debugger_interface.cc +++ b/runtime/jit/debugger_interface.cc @@ -143,7 +143,7 @@ void CreateJITCodeEntryForAddress(uintptr_t address, std::vector<uint8_t> symfil bool DeleteJITCodeEntryForAddress(uintptr_t address) { Thread* self = Thread::Current(); MutexLock mu(self, g_jit_debug_mutex); - const auto& it = g_jit_code_entries.find(address); + const auto it = g_jit_code_entries.find(address); if (it == g_jit_code_entries.end()) { return false; } diff --git a/runtime/jit/profile_compilation_info.cc b/runtime/jit/profile_compilation_info.cc index 4d5c9d6c7d..220f2984d7 100644 --- a/runtime/jit/profile_compilation_info.cc +++ b/runtime/jit/profile_compilation_info.cc @@ -446,7 +446,7 @@ void ProfileCompilationInfo::GroupClassesByDex( ProfileCompilationInfo::DexFileData* ProfileCompilationInfo::GetOrAddDexFileData( const std::string& profile_key, uint32_t checksum) { - const auto& profile_index_it = profile_key_map_.FindOrAdd(profile_key, profile_key_map_.size()); + const auto profile_index_it = profile_key_map_.FindOrAdd(profile_key, profile_key_map_.size()); if (profile_key_map_.size() > std::numeric_limits<uint8_t>::max()) { // Allow only 255 dex files to be profiled. This allows us to save bytes // when encoding. The number is well above what we expect for normal applications. @@ -480,7 +480,7 @@ ProfileCompilationInfo::DexFileData* ProfileCompilationInfo::GetOrAddDexFileData const ProfileCompilationInfo::DexFileData* ProfileCompilationInfo::FindDexData( const std::string& profile_key) const { - const auto& profile_index_it = profile_key_map_.find(profile_key); + const auto profile_index_it = profile_key_map_.find(profile_key); if (profile_index_it == profile_key_map_.end()) { return nullptr; } @@ -1314,7 +1314,7 @@ std::set<DexCacheResolvedClasses> ProfileCompilationInfo::GetResolvedClasses( } std::set<DexCacheResolvedClasses> ret; for (const DexFileData* dex_data : info_) { - const auto& it = key_to_location_map.find(dex_data->profile_key); + const auto it = key_to_location_map.find(dex_data->profile_key); if (it != key_to_location_map.end()) { DexCacheResolvedClasses classes(it->second, it->second, dex_data->checksum); classes.AddClasses(dex_data->class_set.begin(), dex_data->class_set.end()); |