Skip to content

Commit

Permalink
Remove unused lambda capture
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297675 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
dwblaikie committed Mar 13, 2017
1 parent 9812b90 commit 6f54996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/llvm-link/llvm-link.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ static bool linkFiles(const char *argv0, LLVMContext &Context, Linker &L,
if (InternalizeLinkedSymbols) {
Err = L.linkInModule(
std::move(M), ApplicableFlags, [](Module &M, const StringSet<> &GVS) {
internalizeModule(M, [&M, &GVS](const GlobalValue &GV) {
internalizeModule(M, [&GVS](const GlobalValue &GV) {
return !GV.hasName() || (GVS.count(GV.getName()) == 0);
});
});
Expand Down

0 comments on commit 6f54996

Please sign in to comment.