[checker] fix break/continue being allowed in a nested unrolled range loop

This commit is contained in:
A1029384756 committed 2026-04-06 12:39:21 -04:00
1 parent 4dd884bba2
commit 24f28498a2
1 file changed
+2 -2
+2 -2
View File
@@ -1130,8 +1130,8 @@ gb_internal void check_unroll_range_stmt(CheckerContext *ctx, Ast *node, u32 mod
}
}
check_stmt(ctx, irs->body, mod_flags);
u32 new_flags = mod_flags & ~Stmt_BreakAllowed & ~Stmt_ContinueAllowed;
check_stmt(ctx, irs->body, new_flags);
}
gb_internal void check_switch_stmt(CheckerContext *ctx, Ast *node, u32 mod_flags) {