[clang] [CIR] Terminate switch scope after case cleanup (PR #201218)

via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 4 09:48:58 PDT 2026


adams381 wrote:

Superseded by #201210, which landed a more general fix for the unterminated `cir.scope` (RunCleanupsScope for the switch plus the popCleanup insertion-point guard). I built current main at 2a577a44a359 (includes #201210) without this PR's change and the test case here emits clean CIR and LLVM with no verifier error, and #201210's `cleanup_in_case` already covers the unbraced case-with-variable shape. Closing as redundant.

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


More information about the cfe-commits mailing list