[clang] [CIR] Implement FlattenCFG for coroutine AwaitOp, CoroBodyOp, and CoReturnOp (PR #203802)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 19 13:48:41 PDT 2026


================
@@ -1106,7 +1108,9 @@ class CIRCleanupScopeOpFlattening
         // the nested cleanup.
         if (!ignoreBreak && isa<cir::BreakOp>(op)) {
           exits.emplace_back(op, nextId++);
-        } else if (isa<cir::ContinueOp>(op) || isReturnThatExitsCleanup(op)) {
+        } else if (isa<cir::ContinueOp, cir::CoReturnOp, cir::CoroCleanupOp>(
----------------
andykaylor wrote:

And one more time.

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


More information about the cfe-commits mailing list