================
@@ -1083,7 +1084,8 @@ class CIRCleanupScopeOpFlattening
         } else if (isa<cir::LoopOpInterface>(nestedOp)) {
           collectExitsInLoop(nestedOp);
           return mlir::WalkResult::skip();
-        } else if (isa<cir::ContinueOp>(nestedOp) ||
+        } else if (isa<cir::ContinueOp, cir::CoReturnOp, cir::CoroCleanupOp>(
----------------
andykaylor wrote:

As above, `isGotoThatExitsCleanup` can be hoisted into this condition.

https://github.com/llvm/llvm-project/pull/203802
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to