summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-link/llvm-link.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2016-05-27 14:27:24 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2016-05-27 14:27:24 +0000
commit82de7d323d1d03764d3595e9d2d903437e9022f2 (patch)
tree7595c775ff1870e6961cec2801b5b1c24902ed99 /llvm/tools/llvm-link/llvm-link.cpp
parentcfeacf56f03e5ce8bfb32537d64935b2f58e19ee (diff)
downloadbcm5719-llvm-82de7d323d1d03764d3595e9d2d903437e9022f2.tar.gz
bcm5719-llvm-82de7d323d1d03764d3595e9d2d903437e9022f2.zip
Apply clang-tidy's misc-move-constructor-init throughout LLVM.
No functionality change intended, maybe a tiny performance improvement. llvm-svn: 270997
Diffstat (limited to 'llvm/tools/llvm-link/llvm-link.cpp')
-rw-r--r--llvm/tools/llvm-link/llvm-link.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/llvm-link/llvm-link.cpp b/llvm/tools/llvm-link/llvm-link.cpp
index 0e720bd06ea..7e0573a084c 100644
--- a/llvm/tools/llvm-link/llvm-link.cpp
+++ b/llvm/tools/llvm-link/llvm-link.cpp
@@ -36,6 +36,7 @@
#include "llvm/Transforms/Utils/FunctionImportUtils.h"
#include <memory>
+#include <utility>
using namespace llvm;
static cl::list<std::string>
@@ -146,7 +147,7 @@ public:
ModuleLazyLoaderCache(std::function<std::unique_ptr<Module>(
const char *argv0, const std::string &FileName)>
createLazyModule)
- : createLazyModule(createLazyModule) {}
+ : createLazyModule(std::move(createLazyModule)) {}
/// Retrieve a Module from the cache or lazily load it on demand.
Module &operator()(const char *argv0, const std::string &FileName);
OpenPOWER on IntegriCloud