]> granicus.if.org Git - llvm/commitdiff
Fix -Werror build.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Thu, 28 Sep 2017 19:43:53 +0000 (19:43 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Thu, 28 Sep 2017 19:43:53 +0000 (19:43 +0000)
/code/llvm-project/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp:260:38: error: lambda capture 'this' is not used [-Werror,-Wunused-lambda-capture]
                                    [this](decltype(ObjLayer)::ObjHandleT,

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314454 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp

index 132681ecc1960a4785fa46b90e59403e8caf4daa..bec24e5c32203f625cf2dfc92b75f55a443c9e65 100644 (file)
@@ -256,11 +256,11 @@ TEST_F(RTDyldObjectLinkingLayerExecutionTest, NoPrematureAllocation) {
 }
 
 TEST_F(RTDyldObjectLinkingLayerExecutionTest, TestNotifyLoadedSignature) {
-  RTDyldObjectLinkingLayer ObjLayer([]() { return nullptr; },
-                                    [this](decltype(ObjLayer)::ObjHandleT,
-                                           const decltype(ObjLayer)::ObjectPtr &obj,
-                                           const RuntimeDyld::LoadedObjectInfo &info) {
-                                    });
+  RTDyldObjectLinkingLayer ObjLayer(
+      []() { return nullptr; },
+      [](decltype(ObjLayer)::ObjHandleT,
+         const decltype(ObjLayer)::ObjectPtr &obj,
+         const RuntimeDyld::LoadedObjectInfo &info) {});
 }
 
 } // end anonymous namespace