]> granicus.if.org Git - llvm/commitdiff
Remove unused lambda capture
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 13 Mar 2017 21:46:14 +0000 (21:46 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 13 Mar 2017 21:46:14 +0000 (21:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297675 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-link/llvm-link.cpp

index 6cb647d48ebb484cfea0d4b7c27592feb5becfa5..a024b6926d5dd805d7638bb8809e00747649c2b7 100644 (file)
@@ -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);
             });
           });