[polly] 564788d - [Polly] Fix -Wunused-lambda-capture

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 10 09:19:12 PST 2021


Author: Fangrui Song
Date: 2021-02-10T09:19:05-08:00
New Revision: 564788ddcefe83b2fe4769e2b312400ca96ed1fc

URL: https://github.com/llvm/llvm-project/commit/564788ddcefe83b2fe4769e2b312400ca96ed1fc
DIFF: https://github.com/llvm/llvm-project/commit/564788ddcefe83b2fe4769e2b312400ca96ed1fc.diff

LOG: [Polly] Fix -Wunused-lambda-capture

Added: 
    

Modified: 
    polly/lib/Support/RegisterPasses.cpp

Removed: 
    


################################################################################
diff  --git a/polly/lib/Support/RegisterPasses.cpp b/polly/lib/Support/RegisterPasses.cpp
index 528b22914ba2..6d28b216cc6b 100644
--- a/polly/lib/Support/RegisterPasses.cpp
+++ b/polly/lib/Support/RegisterPasses.cpp
@@ -616,7 +616,10 @@ createScopAnalyses(FunctionAnalysisManager &FAM,
                    PassInstrumentationCallbacks *PIC) {
   OwningScopAnalysisManagerFunctionProxy Proxy;
 #define SCOP_ANALYSIS(NAME, CREATE_PASS)                                       \
-  Proxy.getManager().registerPass([PIC] { return CREATE_PASS; });
+  Proxy.getManager().registerPass([PIC] {                                      \
+    (void)PIC;                                                                 \
+    return CREATE_PASS;                                                        \
+  });
 #include "PollyPasses.def"
 
   Proxy.getManager().registerPass(


        


More information about the llvm-commits mailing list