[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 01:41:26 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:
make_scope_exit would try to modify the object being returned ... that's probably UB :)
https://github.com/llvm/llvm-project/pull/126168
More information about the llvm-commits
mailing list