summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-link
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2017-03-13 21:46:14 +0000
committerDavid Blaikie <dblaikie@gmail.com>2017-03-13 21:46:14 +0000
commit427f426f02cfba136f197cb96a2719a3aff98061 (patch)
tree2121d1204dc2c3632ca83825b29f61f8d8d0bbae /llvm/tools/llvm-link
parent3d2044eead47e5ca28438d818f5d574624548ef4 (diff)
downloadbcm5719-llvm-427f426f02cfba136f197cb96a2719a3aff98061.tar.gz
bcm5719-llvm-427f426f02cfba136f197cb96a2719a3aff98061.zip
Remove unused lambda capture
llvm-svn: 297675
Diffstat (limited to 'llvm/tools/llvm-link')
-rw-r--r--llvm/tools/llvm-link/llvm-link.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-link/llvm-link.cpp b/llvm/tools/llvm-link/llvm-link.cpp
index 6cb647d48eb..a024b6926d5 100644
--- a/llvm/tools/llvm-link/llvm-link.cpp
+++ b/llvm/tools/llvm-link/llvm-link.cpp
@@ -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);
});
});
OpenPOWER on IntegriCloud