Remove std::move on return of temporary.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 1 May 2015 15:26:22 +0000 (15:26 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 1 May 2015 15:26:22 +0000 (15:26 +0000)
No functionality change. Found by -Wpessimizing-move.

llvm-svn: 236318

llvm/include/llvm/IR/PassManager.h

index b566f01..4166bab 100644 (file)
@@ -827,7 +827,7 @@ private:
 template <typename FunctionPassT>
 ModuleToFunctionPassAdaptor<FunctionPassT>
 createModuleToFunctionPassAdaptor(FunctionPassT Pass) {
-  return std::move(ModuleToFunctionPassAdaptor<FunctionPassT>(std::move(Pass)));
+  return ModuleToFunctionPassAdaptor<FunctionPassT>(std::move(Pass));
 }
 
 /// \brief A template utility pass to force an analysis result to be available.