# stage2: fix handling of error unions as return type · gitcafe/zig

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

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

Visibility: public

Requested revision: 07691db3ae061d8122f6c53c1f34c2fb0df2f7ef

Requested commit: 07691db3ae061d8122f6c53c1f34c2fb0df2f7ef

Commit: 07691db3ae061d8122f6c53c1f34c2fb0df2f7ef

Tree: 379046dbe83b30f007433360ad08d3bdee7e2234

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: fix handling of error unions as return type

 * LLVM backend: fix phi instruction not respecting `isByRef`
   - Also fix `is_non_null` not respecting `isByRef`
 * Type: implement abiSize for error unions

```

## Parents

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

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