aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/BackendUtil.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2017-03-21 21:35:04 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2017-03-21 21:35:04 +0000
commitf6021ecddc73d14c94ad70938250d58f330795be (patch)
treefca32d01f410767901dd63e95e4dae78e1fbf81c /clang/lib/CodeGen/BackendUtil.cpp
parenta079cdbeb80500c85ba8eb9d539528e4c19f9da1 (diff)
downloadllvm-f6021ecddc73d14c94ad70938250d58f330795be.zip
llvm-f6021ecddc73d14c94ad70938250d58f330795be.tar.gz
llvm-f6021ecddc73d14c94ad70938250d58f330795be.tar.bz2
Apply clang-tidy's performance-unnecessary-value-param to parts of clang.
No functionality change intended. llvm-svn: 298443
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
-rw-r--r--clang/lib/CodeGen/BackendUtil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp
index d1aae08..35c31a0 100644
--- a/clang/lib/CodeGen/BackendUtil.cpp
+++ b/clang/lib/CodeGen/BackendUtil.cpp
@@ -953,7 +953,7 @@ static void runThinLTOBackend(ModuleSummaryIndex *CombinedIndex, Module *M,
return llvm::make_unique<lto::NativeObjectStream>(std::move(OS));
};
lto::Config Conf;
- Conf.SampleProfile = SampleProfile;
+ Conf.SampleProfile = std::move(SampleProfile);
if (Error E = thinBackend(
Conf, 0, AddStream, *M, *CombinedIndex, ImportList,
ModuleToDefinedGVSummaries[M->getModuleIdentifier()], ModuleMap)) {