# wasm: fix callInstrinsic return value · gitcafe/zig

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

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

Visibility: public

Requested revision: 63c25cc1cc4aef1ae5c7425496d99b30db2f44d7

Requested commit: 63c25cc1cc4aef1ae5c7425496d99b30db2f44d7

Commit: 63c25cc1cc4aef1ae5c7425496d99b30db2f44d7

Tree: 4601f32c41590e381b2249e3a90739371c01cb91

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm: fix callInstrinsic return value

Rather than storing it in a local and returning that,
we now keep this on the stack as all internal functions
expect it to be on the stack already and therefore were
generating extra `local.set` instructions.

```

## Parents

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

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