diff options
Diffstat (limited to 'llvm/tools/llvm-link/llvm-link.cpp')
-rw-r--r-- | llvm/tools/llvm-link/llvm-link.cpp | 3 |
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); |