# stage2: simplify codegen for errorToInt and intToError · gitcafe/zig

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

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

Visibility: public

Requested revision: a95fdb06352a6a1e60d0167bad62f5a46345177a

Requested commit: a95fdb06352a6a1e60d0167bad62f5a46345177a

Commit: a95fdb06352a6a1e60d0167bad62f5a46345177a

Tree: db2347ab29797d19c899bf2f6a043a984eb173c2

Author: Jacob G-W

Committer: Veikka Tuominen

## Message

```
stage2: simplify codegen for errorToInt and intToError

We can just use bitcast instead of error_to_int, int_to_error since
errorToInt and intToError do not actually do anything, just change types.
This allows us to remove 2 air ops that were the exact same as bitcast

```

## Parents

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

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