From: Benjamin Kramer Date: Fri, 1 May 2015 15:26:22 +0000 (+0000) Subject: Remove std::move on return of temporary. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=7a712a0b9f4555cc718927c1d9a7a3e2187d1ee8;p=oota-llvm.git Remove std::move on return of temporary. No functionality change. Found by -Wpessimizing-move. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236318 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/IR/PassManager.h b/include/llvm/IR/PassManager.h index b566f01ca8b..4166babd63e 100644 --- a/include/llvm/IR/PassManager.h +++ b/include/llvm/IR/PassManager.h @@ -827,7 +827,7 @@ private: template ModuleToFunctionPassAdaptor createModuleToFunctionPassAdaptor(FunctionPassT Pass) { - return std::move(ModuleToFunctionPassAdaptor(std::move(Pass))); + return ModuleToFunctionPassAdaptor(std::move(Pass)); } /// \brief A template utility pass to force an analysis result to be available.