From 2e018efa9be05c7dc30bc816e9db8b49a2791405 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 27 May 2016 13:36:58 +0000 Subject: Turn copies into references as suggested by clang-tidy's performance-unnecessary-copy-initialization. llvm-svn: 270994 --- clang/lib/Frontend/CompilerInvocation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Frontend/CompilerInvocation.cpp') diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 74e9fed..a37e1ce 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -2416,7 +2416,7 @@ std::string CompilerInvocation::getModuleHash() const { // Extend the signature with the module file extensions. const FrontendOptions &frontendOpts = getFrontendOpts(); - for (auto ext : frontendOpts.ModuleFileExtensions) { + for (const auto &ext : frontendOpts.ModuleFileExtensions) { code = ext->hashExtension(code); } -- cgit v1.1