1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

[NewPM] Fix -Wunused-lambda-capture in -DLLVM_ENABLE_ASSERTIONS=off builds after D91327

This commit is contained in:
Fangrui Song 2021-04-06 11:30:19 -07:00
parent 80e767dfd2
commit 488a18ca52

View File

@ -1072,6 +1072,7 @@ void PreservedCFGCheckerInstrumentation::registerCallbacks(
PIC.registerBeforeNonSkippedPassCallback(
[this, &FAM](StringRef P, Any IR) {
assert(&PassStack.emplace_back(P));
(void)this;
if (!any_isa<const Function *>(IR))
return;
@ -1084,6 +1085,7 @@ void PreservedCFGCheckerInstrumentation::registerCallbacks(
[this](StringRef P, const PreservedAnalyses &PassPA) {
assert(PassStack.pop_back_val() == P &&
"Before and After callbacks must correspond");
(void)this;
});
PIC.registerAfterPassCallback([this, &FAM,
@ -1091,6 +1093,7 @@ void PreservedCFGCheckerInstrumentation::registerCallbacks(
const PreservedAnalyses &PassPA) {
assert(PassStack.pop_back_val() == P &&
"Before and After callbacks must correspond");
(void)this;
if (!any_isa<const Function *>(IR))
return;