[llvm] [LTO][Pipelines][Coro] Handle coroutines in LTO pipeline (PR #126168)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 7 00:35:42 PST 2025


================
@@ -1816,6 +1817,17 @@ PassBuilder::buildLTODefaultPipeline(OptimizationLevel Level,
   // in the current module.
   MPM.addPass(CrossDSOCFIPass());
 
+  MPM.addPass(CoroEarlyPass());
+
+  auto Exit = llvm::make_scope_exit([&]() {
----------------
nikic wrote:

Please call this explicitly where necessary instead of using make_scope_exit.

https://github.com/llvm/llvm-project/pull/126168


More information about the llvm-commits mailing list