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

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 7 00:48:08 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([&]() {
----------------
vitalybuka wrote:

I assume for readability?
@nikic  Or do you know something about make_scope_exit?

I am starting to suspect that my Windows pre-commit errors looks like make_scope_exit didn't execute.


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


More information about the llvm-commits mailing list