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:
parent
80e767dfd2
commit
488a18ca52
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user