[llvm] r213174 - Remove unnecessary/redundant std::move

David Blaikie dblaikie at gmail.com
Wed Jul 16 10:09:23 PDT 2014


Author: dblaikie
Date: Wed Jul 16 12:09:21 2014
New Revision: 213174

URL: http://llvm.org/viewvc/llvm-project?rev=213174&view=rev
Log:
Remove unnecessary/redundant std::move

(run returns unique_ptr by value already)

Modified:
    llvm/trunk/lib/IR/PassManager.cpp

Modified: llvm/trunk/lib/IR/PassManager.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/PassManager.cpp?rev=213174&r1=213173&r2=213174&view=diff
==============================================================================
--- llvm/trunk/lib/IR/PassManager.cpp (original)
+++ llvm/trunk/lib/IR/PassManager.cpp Wed Jul 16 12:09:21 2014
@@ -53,7 +53,7 @@ ModuleAnalysisManager::getResultImpl(voi
   // 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;
 }





More information about the llvm-commits mailing list