[llvm] r236318 - Remove std::move on return of temporary.
Benjamin Kramer
benny.kra at googlemail.com
Fri May 1 08:26:22 PDT 2015
Author: d0k
Date: Fri May 1 10:26:22 2015
New Revision: 236318
URL: http://llvm.org/viewvc/llvm-project?rev=236318&view=rev
Log:
Remove std::move on return of temporary.
No functionality change. Found by -Wpessimizing-move.
Modified:
llvm/trunk/include/llvm/IR/PassManager.h
Modified: llvm/trunk/include/llvm/IR/PassManager.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/PassManager.h?rev=236318&r1=236317&r2=236318&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/PassManager.h (original)
+++ llvm/trunk/include/llvm/IR/PassManager.h Fri May 1 10:26:22 2015
@@ -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.
More information about the llvm-commits
mailing list