[llvm] r251495 - Fix a -Wpessimizing-move warning.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 27 21:54:46 PDT 2015
Author: ctopper
Date: Tue Oct 27 23:54:46 2015
New Revision: 251495
URL: http://llvm.org/viewvc/llvm-project?rev=251495&view=rev
Log:
Fix a -Wpessimizing-move warning.
Modified:
llvm/trunk/unittests/ExecutionEngine/Orc/OrcTestCommon.h
Modified: llvm/trunk/unittests/ExecutionEngine/Orc/OrcTestCommon.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ExecutionEngine/Orc/OrcTestCommon.h?rev=251495&r1=251494&r2=251495&view=diff
==============================================================================
--- llvm/trunk/unittests/ExecutionEngine/Orc/OrcTestCommon.h (original)
+++ llvm/trunk/unittests/ExecutionEngine/Orc/OrcTestCommon.h Tue Oct 27 23:54:46 2015
@@ -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;
}
More information about the llvm-commits
mailing list