================ @@ -564,6 +562,8 @@ PreservedAnalyses InlinerPass::run(LazyCallGraph::SCC &InitialC, ++NumDeleted; } + Advisor.onPassExit(C); ---------------- mtrofin wrote: why not the scope_exit? https://github.com/llvm/llvm-project/pull/96274