[llvm] r258634 - ObjectTransformLayerTest.cpp: Fix a warning. [-Wredundant-move]
NAKAMURA Takumi via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 23 12:45:55 PST 2016
Author: chapuni
Date: Sat Jan 23 14:45:55 2016
New Revision: 258634
URL: http://llvm.org/viewvc/llvm-project?rev=258634&view=rev
Log:
ObjectTransformLayerTest.cpp: Fix a warning. [-Wredundant-move]
Modified:
llvm/trunk/unittests/ExecutionEngine/Orc/ObjectTransformLayerTest.cpp
Modified: llvm/trunk/unittests/ExecutionEngine/Orc/ObjectTransformLayerTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ExecutionEngine/Orc/ObjectTransformLayerTest.cpp?rev=258634&r1=258633&r2=258634&view=diff
==============================================================================
--- llvm/trunk/unittests/ExecutionEngine/Orc/ObjectTransformLayerTest.cpp (original)
+++ llvm/trunk/unittests/ExecutionEngine/Orc/ObjectTransformLayerTest.cpp Sat Jan 23 14:45:55 2016
@@ -308,7 +308,7 @@ TEST(ObjectTransformLayerTest, Main) {
ObjectLinkingLayer<> BaseLayer;
auto IdentityTransform = [](
std::unique_ptr<llvm::object::OwningBinary<llvm::object::ObjectFile>>
- Obj) { return std::move(Obj); };
+ Obj) { return Obj; };
ObjectTransformLayer<decltype(BaseLayer), decltype(IdentityTransform)>
TransformLayer(BaseLayer, IdentityTransform);
auto NullCompiler = [](llvm::Module &) {
More information about the llvm-commits
mailing list