Skip to content

Commit

Permalink
Fix -Werror build.
Browse files Browse the repository at this point in the history
/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
  • Loading branch information
eugenis committed Sep 28, 2017
1 parent 052ec5f commit fa769be
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -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

0 comments on commit fa769be

Please sign in to comment.