llvm.org GIT mirror llvm / 6f54996
Remove unused lambda capture git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297675 91177308-0d34-0410-b5e6-96231b3b80d8 David Blaikie 2 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
317317 if (InternalizeLinkedSymbols) {
318318 Err = L.linkInModule(
319319 std::move(M), ApplicableFlags, [](Module &M, const StringSet<> &GVS) {
320 internalizeModule(M, [&M, &GVS](const GlobalValue &GV) {
320 internalizeModule(M, [&GVS](const GlobalValue &GV) {
321321 return !GV.hasName() || (GVS.count(GV.getName()) == 0);
322322 });
323323 });