[clang] [CIR][NFC] Share getSuccessorRegions across region-branch ops (PR #220512)
Henrich Lauko via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 13 04:04:13 PDT 2026
================
@@ -1393,7 +1414,7 @@ def CIR_CleanupKindAttr : CIR_EnumAttr<CIR_CleanupKind, "cleanup_kind"> {
}];
}
-def CIR_CleanupScopeOp : CIR_RegionBranchOpBase<"cleanup.scope", [
+def CIR_CleanupScopeOp : CIR_EnterAnyRegionBranchOpBase<"cleanup.scope", [
----------------
xlauko wrote:
True, I took `cir.cleanup.scope` out of this PR. [llvm/llvm-project#221222](https://github.com/llvm/llvm-project/pull/221222) fixes its successors so the op enters only the body, and a body exit enters the cleanup region when the cleanup kind covers that exit.
https://github.com/llvm/llvm-project/pull/220512
More information about the cfe-commits
mailing list