From 2412f42fae9a1a32607224f2944db75ca38e19d3 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Wed, 28 Oct 2015 04:54:46 +0000 Subject: [PATCH] Fix a -Wpessimizing-move warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251495 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/ExecutionEngine/Orc/OrcTestCommon.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unittests/ExecutionEngine/Orc/OrcTestCommon.h b/unittests/ExecutionEngine/Orc/OrcTestCommon.h index d7389492291..875db202a20 100644 --- a/unittests/ExecutionEngine/Orc/OrcTestCommon.h +++ b/unittests/ExecutionEngine/Orc/OrcTestCommon.h @@ -47,7 +47,7 @@ public: const Triple& TT = TM->getTargetTriple(); if (TT.getArch() == Triple::x86_64 && TT.isOSDarwin()) - return std::move(TM); + return TM; return nullptr; } -- 2.34.1