diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2016-06-17 20:41:14 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2016-06-17 20:41:14 +0000 |
commit | 1afc1de4064a73efc04b91ecb2c3dda7e6bb9bef (patch) | |
tree | bbe3e14eee29672ee0006c6c55435d9e181748b9 /llvm/lib/Transforms/IPO/FunctionImport.cpp | |
parent | 11582c59d799a651db12b47dd690a02204439ed5 (diff) | |
download | bcm5719-llvm-1afc1de4064a73efc04b91ecb2c3dda7e6bb9bef.tar.gz bcm5719-llvm-1afc1de4064a73efc04b91ecb2c3dda7e6bb9bef.zip |
Apply another batch of fixes from clang-tidy's performance-unnecessary-value-param.
Contains some manual fixes. No functionality change intended.
llvm-svn: 273047
Diffstat (limited to 'llvm/lib/Transforms/IPO/FunctionImport.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/FunctionImport.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<ModuleSummaryIndex> -getModuleSummaryIndexForFile(StringRef Path, std::string &Error, - DiagnosticHandlerFunction DiagnosticHandler) { +static std::unique_ptr<ModuleSummaryIndex> getModuleSummaryIndexForFile( + StringRef Path, std::string &Error, + const DiagnosticHandlerFunction &DiagnosticHandler) { std::unique_ptr<MemoryBuffer> Buffer; ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr = MemoryBuffer::getFile(Path); |