Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AstGen: do not allow unlabeled break to exit a labeled switch #21385

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

mlugg
Copy link
Member

@mlugg mlugg commented Sep 11, 2024

breaking from something which isn't a loop should always be opt-in. This was a bug in #21257.

`break`ing from something which isn't a loop should always be opt-in.
This was a bug in ziglang#21257.
@mlugg mlugg merged commit 03c3633 into ziglang:master Sep 12, 2024
10 checks passed
mlugg added a commit to mlugg/zig that referenced this pull request Sep 15, 2024
Also, start using labeled switch statements when dispatching
maybe-runtime instructions like condbr to comptime-only variants like
condbr_inline.

This can't be merged until we get a zig1.wasm update due to ziglang#21385.

Resolves: ziglang#21405
mlugg added a commit to mlugg/zig that referenced this pull request Oct 27, 2024
Also, start using labeled switch statements when dispatching
maybe-runtime instructions like condbr to comptime-only variants like
condbr_inline.

This can't be merged until we get a zig1.wasm update due to ziglang#21385.

Resolves: ziglang#21405
mlugg added a commit that referenced this pull request Oct 28, 2024
Also, start using labeled switch statements when dispatching
maybe-runtime instructions like condbr to comptime-only variants like
condbr_inline.

This can't be merged until we get a zig1.wasm update due to #21385.

Resolves: #21405
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant