diff options
| author | Andreas Gampe <agampe@google.com> | 2018-06-18 13:33:55 -0700 |
|---|---|---|
| committer | Andreas Gampe <agampe@google.com> | 2018-06-19 17:11:21 -0700 |
| commit | 89de444350fdbd7df4fb4d95bb71f00e6673b466 (patch) | |
| tree | 57fa7214c4059afcfd11aa35a81999b8558b91b8 /libprofile | |
| parent | e383d23918db4eede30c3d78589d4639de3ec446 (diff) | |
| download | art-89de444350fdbd7df4fb4d95bb71f00e6673b466.tar.gz art-89de444350fdbd7df4fb4d95bb71f00e6673b466.tar.bz2 art-89de444350fdbd7df4fb4d95bb71f00e6673b466.zip | |
ART: Fix some performance-X tidy
Fix performance-for-range-copy, performance-unnecessary-copy-initialization
and performance-unnecessary-value-param issues.
Test: mmma art
Test: m test-art-host
Change-Id: I43d8736fc541030a3c61f66aeee0b9c2f1d295f7
Diffstat (limited to 'libprofile')
| -rw-r--r-- | libprofile/profile/profile_compilation_info.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libprofile/profile/profile_compilation_info.cc b/libprofile/profile/profile_compilation_info.cc index 748e24e27c..1bb84b18dc 100644 --- a/libprofile/profile/profile_compilation_info.cc +++ b/libprofile/profile/profile_compilation_info.cc @@ -1383,7 +1383,7 @@ bool ProfileCompilationInfo::RemapProfileIndex( // the current profile info. // Note that the number of elements should be very small, so this should not // be a performance issue. - for (const ProfileLineHeader other_profile_line_header : profile_line_headers) { + for (const ProfileLineHeader& other_profile_line_header : profile_line_headers) { if (!filter_fn(other_profile_line_header.dex_location, other_profile_line_header.checksum)) { continue; } |
