# wasm: correctly lower packed structs in arguments · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/320c4d68f5f40794ae31d5535de9c3a8ff5cb471)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 320c4d68f5f40794ae31d5535de9c3a8ff5cb471

Requested commit: 320c4d68f5f40794ae31d5535de9c3a8ff5cb471

Commit: 320c4d68f5f40794ae31d5535de9c3a8ff5cb471

Tree: c658f57f89942bc57b0f7e725487933dcfe27a38

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm: correctly lower packed structs in arguments

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 #18894

```

## Parents

- [e56fe06d3083d29b253ee8f4586971ec362a1e95](https://git.cafe/gitcafe/zig/commit/e56fe06d3083d29b253ee8f4586971ec362a1e95?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/320c4d68f5f40794ae31d5535de9c3a8ff5cb471?format=markdown)
