diff --git a/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp b/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp index 132681ecc196..bec24e5c3220 100644 --- a/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp +++ b/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp @@ -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