mirror of
https://github.com/odin-lang/Odin.git
synced 2026-05-25 13:18:14 +00:00
[checker] fix break/continue being allowed in a nested unrolled range loop
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user