# Fix wasm-related compile errors: · gitcafe/zig

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

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

Visibility: public

Requested revision: 424f260f850cb22637888bbfdf5bfaf9c08a4dae

Requested commit: 424f260f850cb22637888bbfdf5bfaf9c08a4dae

Commit: 424f260f850cb22637888bbfdf5bfaf9c08a4dae

Tree: 627d18c4ab1a7905cfa041028a8fdb4d680b651b

Author: Luuk de Gram

Committer: Andrew Kelley

## Message

```
Fix wasm-related compile errors:

- Update `fail()` to not require a `srcLoc`.
This brings it in line with other backends, and we were always passing 'node_offset = 0', anyway.
- Fix unused local due to change of architecture wrt function/decl generation.
- Replace all old instructions to indexes within the function signatures.

```

## Parents

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

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