Skip to content

Commit 2775262

Browse files
authored
Merge pull request #70428 from eeckstein/fix-pm-warnings
PassManager: correctly pass the CalleeCache to SILModule::verify
2 parents c0a6159 + b3cccb3 commit 2775262

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/SILOptimizer/PassManager/PassManager.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ void SILPassManager::runModulePass(unsigned TransIdx) {
782782
(SILVerifyAroundPass.end() != std::find_if(SILVerifyAroundPass.begin(),
783783
SILVerifyAroundPass.end(),
784784
MatchFun))) {
785-
Mod->verify(this);
785+
Mod->verify(getAnalysis<BasicCalleeAnalysis>()->getCalleeCache());
786786
verifyAnalyses();
787787
}
788788

@@ -816,7 +816,7 @@ void SILPassManager::runModulePass(unsigned TransIdx) {
816816

817817
if (Options.VerifyAll &&
818818
(CurrentPassHasInvalidated || !SILVerifyWithoutInvalidation)) {
819-
Mod->verify(this);
819+
Mod->verify(getAnalysis<BasicCalleeAnalysis>()->getCalleeCache());
820820
verifyAnalyses();
821821
} else {
822822
if ((SILVerifyAfterPass.end() != std::find_if(SILVerifyAfterPass.begin(),
@@ -825,7 +825,7 @@ void SILPassManager::runModulePass(unsigned TransIdx) {
825825
(SILVerifyAroundPass.end() != std::find_if(SILVerifyAroundPass.begin(),
826826
SILVerifyAroundPass.end(),
827827
MatchFun))) {
828-
Mod->verify(this);
828+
Mod->verify(getAnalysis<BasicCalleeAnalysis>()->getCalleeCache());
829829
verifyAnalyses();
830830
}
831831
}

0 commit comments

Comments
 (0)