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

wasm: correctly lower packed structs in arguments #18897

Merged
merged 1 commit into from
Feb 11, 2024

Conversation

Luukdegram
Copy link
Member

Fixes #18894

When an argument is a 'local', which is the case when it's a parameter,
we should not attempt to load it from memory. Instead, we directly emit
it to the stack. Only when the `WValue` is ensure to live in the linear
data section do we load it from memory onto the stack.

closes ziglang#18894
@Luukdegram Luukdegram enabled auto-merge (rebase) February 11, 2024 11:20
@Luukdegram Luukdegram merged commit 320c4d6 into ziglang:master Feb 11, 2024
10 checks passed
@andrewrk
Copy link
Member

Nice!

@Luukdegram Luukdegram deleted the issue-18894 branch February 12, 2024 06:52
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.

reached unreachable code in wasm backend when using packed struct on ABI boundary
2 participants