[Polly] Fix -Wunused-lambda-capture

This commit is contained in:
Fangrui Song 2021-02-10 09:19:05 -08:00
parent 89e257bd62
commit 564788ddce
1 changed files with 4 additions and 1 deletions
polly/lib/Support

View File

@ -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(