From 1afc1de4064a73efc04b91ecb2c3dda7e6bb9bef Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 17 Jun 2016 20:41:14 +0000 Subject: Apply another batch of fixes from clang-tidy's performance-unnecessary-value-param. Contains some manual fixes. No functionality change intended. llvm-svn: 273047 --- llvm/lib/Transforms/IPO/FunctionImport.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/lib/Transforms/IPO/FunctionImport.cpp') diff --git a/llvm/lib/Transforms/IPO/FunctionImport.cpp b/llvm/lib/Transforms/IPO/FunctionImport.cpp index d0b2667369b..e22f4cbe34d 100644 --- a/llvm/lib/Transforms/IPO/FunctionImport.cpp +++ b/llvm/lib/Transforms/IPO/FunctionImport.cpp @@ -679,9 +679,9 @@ static void diagnosticHandler(const DiagnosticInfo &DI) { /// Parse the summary index out of an IR file and return the summary /// index object if found, or nullptr if not. -static std::unique_ptr -getModuleSummaryIndexForFile(StringRef Path, std::string &Error, - DiagnosticHandlerFunction DiagnosticHandler) { +static std::unique_ptr getModuleSummaryIndexForFile( + StringRef Path, std::string &Error, + const DiagnosticHandlerFunction &DiagnosticHandler) { std::unique_ptr Buffer; ErrorOr> BufferOrErr = MemoryBuffer::getFile(Path); -- cgit v1.2.3