Merge pull request #6521 from A1029384756/master

[checker] fix break/continue being allowed in a nested unrolled range loop
This commit is contained in:
gingerBill
2026-04-11 21:35:12 +01:00
committed by GitHub

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) {