summaryrefslogtreecommitdiff
path: root/compiler/utils/assembler_test_base.h
diff options
context:
space:
mode:
author Stefano Cianciulli <scianciulli@google.com> 2022-06-29 08:48:55 +0000
committer Stefano Cianciulli <scianciulli@google.com> 2022-06-30 08:51:09 +0000
commit944df155349f8a4df9aab6561509e926e2b0c013 (patch)
tree955a2514cf489d7ba42f2c62607bddc81f87efec /compiler/utils/assembler_test_base.h
parent41465be85076f3fc1b9c6c9a7c18aad698a1827b (diff)
Fix performance-for-range-copy clang-tidy issues
Test: m tidy-art Bug: 213953102 Change-Id: I206a44aa4c1f3f2f91e4f94831d042e903c71c65
Diffstat (limited to 'compiler/utils/assembler_test_base.h')
-rw-r--r--compiler/utils/assembler_test_base.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/utils/assembler_test_base.h b/compiler/utils/assembler_test_base.h
index bf73808603..de19d660a7 100644
--- a/compiler/utils/assembler_test_base.h
+++ b/compiler/utils/assembler_test_base.h
@@ -59,7 +59,7 @@ class AssemblerTestBase : public testing::Test {
// This is intended to be run as a test.
bool CheckTools() {
- for (auto cmd : { GetAssemblerCommand()[0], GetDisassemblerCommand()[0] }) {
+ for (const std::string& cmd : { GetAssemblerCommand()[0], GetDisassemblerCommand()[0] }) {
if (!OS::FileExists(cmd.c_str())) {
LOG(ERROR) << "Could not find " << cmd;
return false;