Fix -Werror build.
/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,
llvm-svn: 314454
diff --git a/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp b/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp
index 132681e..bec24e5 100644
--- a/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp
+++ b/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp
@@ -256,11 +256,11 @@
}
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