From 944df155349f8a4df9aab6561509e926e2b0c013 Mon Sep 17 00:00:00 2001 From: Stefano Cianciulli Date: Wed, 29 Jun 2022 08:48:55 +0000 Subject: Fix performance-for-range-copy clang-tidy issues Test: m tidy-art Bug: 213953102 Change-Id: I206a44aa4c1f3f2f91e4f94831d042e903c71c65 --- compiler/utils/assembler_test_base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/utils/assembler_test_base.h') 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; -- cgit v1.2.3-59-g8ed1b