From 7a712a0b9f4555cc718927c1d9a7a3e2187d1ee8 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 1 May 2015 15:26:22 +0000 Subject: [PATCH] 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 --- include/llvm/IR/PassManager.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.34.1