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
This commit is contained in:
Evgeniy Stepanov 2017-09-28 19:43:53 +00:00
parent 052ec5f92a
commit fa769be5e7
1 changed files with 5 additions and 5 deletions

View 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