[llvm] r297675 - Remove unused lambda capture

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 13 14:46:14 PDT 2017


Author: dblaikie
Date: Mon Mar 13 16:46:14 2017
New Revision: 297675

URL: http://llvm.org/viewvc/llvm-project?rev=297675&view=rev
Log:
Remove unused lambda capture

Modified:
    llvm/trunk/tools/llvm-link/llvm-link.cpp

Modified: llvm/trunk/tools/llvm-link/llvm-link.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-link/llvm-link.cpp?rev=297675&r1=297674&r2=297675&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-link/llvm-link.cpp (original)
+++ llvm/trunk/tools/llvm-link/llvm-link.cpp Mon Mar 13 16:46:14 2017
@@ -318,7 +318,7 @@ static bool linkFiles(const char *argv0,
     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);
             });
           });




More information about the llvm-commits mailing list