r297681 - Fix -Wunused-lambda-capture warning in new code

Reid Kleckner via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 13 15:33:07 PDT 2017


Author: rnk
Date: Mon Mar 13 17:33:07 2017
New Revision: 297681

URL: http://llvm.org/viewvc/llvm-project?rev=297681&view=rev
Log:
Fix -Wunused-lambda-capture warning in new code

Modified:
    cfe/trunk/lib/CodeGen/CodeGenAction.cpp

Modified: cfe/trunk/lib/CodeGen/CodeGenAction.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenAction.cpp?rev=297681&r1=297680&r2=297681&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenAction.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenAction.cpp Mon Mar 13 17:33:07 2017
@@ -177,7 +177,7 @@ namespace clang {
           Err = Linker::linkModules(
               *getModule(), std::move(LM.Module), LM.LinkFlags,
               [](llvm::Module &M, const llvm::StringSet<> &GVS) {
-                internalizeModule(M, [&M, &GVS](const llvm::GlobalValue &GV) {
+                internalizeModule(M, [&GVS](const llvm::GlobalValue &GV) {
                   return !GV.hasName() || (GVS.count(GV.getName()) == 0);
                 });
               });




More information about the cfe-commits mailing list