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

Sema: add missing coercion to bool for condbr_inline #21422

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

mlugg
Copy link
Member

@mlugg mlugg commented 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 #21385.

Resolves: #21405

@mlugg mlugg marked this pull request as draft September 15, 2024 12:44
@mlugg
Copy link
Member Author

mlugg commented Sep 15, 2024

Canceled the workflow and marked PR as draft, since it can't merged until a zig1.wasm update, and it'd be silly to do one just for this.

mlugg added a commit to mlugg/zig that referenced this pull request Oct 19, 2024
As well as being necessary for the `CallingConvention` changes, this
update includes the following notable changes:

* Fix unlabeled `break` targeting the wrong scope in the presence of
  labeled continue, unblocking ziglang#21422
* Implement `@FieldType`
* Implement `@splat` on arrays

Signed-off-by: mlugg <mlugg@mlugg.co.uk>
@mlugg mlugg marked this pull request as ready for review October 27, 2024 22:18
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 mlugg enabled auto-merge (rebase) October 27, 2024 22:20
richerfu pushed a commit to richerfu/zig that referenced this pull request Oct 28, 2024
As well as being necessary for the `CallingConvention` changes, this
update includes the following notable changes:

* Fix unlabeled `break` targeting the wrong scope in the presence of
  labeled continue, unblocking ziglang#21422
* Implement `@FieldType`
* Implement `@splat` on arrays

Signed-off-by: mlugg <mlugg@mlugg.co.uk>
@mlugg mlugg merged commit 05b445a into ziglang:master Oct 28, 2024
10 checks passed
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.

Invalid code compiles in comptime
1 participant