[Polly] Fix -Wunused-lambda-capture
GitOrigin-RevId: 564788ddcefe83b2fe4769e2b312400ca96ed1fc
diff --git a/lib/Support/RegisterPasses.cpp b/lib/Support/RegisterPasses.cpp
index 528b229..6d28b21 100644
--- a/lib/Support/RegisterPasses.cpp
+++ b/lib/Support/RegisterPasses.cpp
@@ -616,7 +616,10 @@
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(