Fix a -Wpessimizing-move warning.
authorCraig Topper <craig.topper@gmail.com>
Wed, 28 Oct 2015 04:54:46 +0000 (04:54 +0000)
committerCraig Topper <craig.topper@gmail.com>
Wed, 28 Oct 2015 04:54:46 +0000 (04:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251495 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/ExecutionEngine/Orc/OrcTestCommon.h

index d738949..875db20 100644 (file)
@@ -47,7 +47,7 @@ public:
     const Triple& TT = TM->getTargetTriple();
 
     if (TT.getArch() == Triple::x86_64 && TT.isOSDarwin())
     const Triple& TT = TM->getTargetTriple();
 
     if (TT.getArch() == Triple::x86_64 && TT.isOSDarwin())
-      return std::move(TM);
+      return TM;
 
     return nullptr;
   }
 
     return nullptr;
   }