From 07557be68fd49eaac6a2f188298fd3c869c6ef20 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Wed, 16 Jul 2014 17:09:21 +0000 Subject: [PATCH] Remove unnecessary/redundant std::move (run returns unique_ptr by value already) llvm-svn: 213174 --- llvm/lib/IR/PassManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/IR/PassManager.cpp b/llvm/lib/IR/PassManager.cpp index 0defb6a..2e2a7cb 100644 --- a/llvm/lib/IR/PassManager.cpp +++ b/llvm/lib/IR/PassManager.cpp @@ -53,7 +53,7 @@ ModuleAnalysisManager::getResultImpl(void *PassID, Module *M) { // If we don't have a cached result for this module, look up the pass and run // it to produce a result, which we then add to the cache. if (Inserted) - RI->second = std::move(lookupPass(PassID).run(M, this)); + RI->second = lookupPass(PassID).run(M, this); return *RI->second; } -- 2.7.4