Skip to content
Snippets Groups Projects
Commit 19f61736 authored by Reid Kleckner's avatar Reid Kleckner
Browse files

Fix -Wunused-lambda-capture warning in new code

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@297681 91177308-0d34-0410-b5e6-96231b3b80d8
parent 45f9ba4c
No related branches found
No related tags found
No related merge requests found
...@@ -177,7 +177,7 @@ namespace clang { ...@@ -177,7 +177,7 @@ namespace clang {
Err = Linker::linkModules( Err = Linker::linkModules(
*getModule(), std::move(LM.Module), LM.LinkFlags, *getModule(), std::move(LM.Module), LM.LinkFlags,
[](llvm::Module &M, const llvm::StringSet<> &GVS) { [](llvm::Module &M, const llvm::StringSet<> &GVS) {
internalizeModule(M, [&M, &GVS](const llvm::GlobalValue &GV) { internalizeModule(M, [&GVS](const llvm::GlobalValue &GV) {
return !GV.hasName() || (GVS.count(GV.getName()) == 0); return !GV.hasName() || (GVS.count(GV.getName()) == 0);
}); });
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment