[clang] [CIR] Fix insertion point tracking for switch with cleanups (PR #201210)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 2 17:07:56 PDT 2026
================
@@ -1158,13 +1158,19 @@ mlir::LogicalResult CIRGenFunction::emitSwitchBody(const Stmt *s) {
// that, the 'case' regions will take care of future ones.
if (!body.empty() && !isa<SwitchCase>(body.front())) {
builder.setInsertionPointToEnd(switchBlock);
- while (!body.empty() && !isa<SwitchCase>(body.front())) {
+ {
----------------
erichkeane wrote:
got it, I see that now, thanks.
https://github.com/llvm/llvm-project/pull/201210
More information about the cfe-commits
mailing list