Skip to content

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.

@mlugg mlugg enabled auto-merge (rebase) September 11, 2024 08:01
@mlugg mlugg force-pushed the switch-break-unlabeled branch from 2c1c21b to 9ce93da Compare September 12, 2024 17:55
`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
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
@mlugg mlugg deleted the switch-break-unlabeled branch May 18, 2025 20:00
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