================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits