# stage2: pass some error union tests · gitcafe/zig

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

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

Visibility: public

Requested revision: 799fedf612aa8742c446b015c12d21707a1dbec0

Requested commit: 799fedf612aa8742c446b015c12d21707a1dbec0

Commit: 799fedf612aa8742c446b015c12d21707a1dbec0

Tree: 1d9efbc4cb3f6dda9631160784a074e58d6bd479

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: pass some error union tests

 * Value: rename `error_union` to `eu_payload` and clarify the intended
   usage in the doc comments. The way error unions is represented with
   Value is fixed to not have ambiguous values.
 * Fix codegen for error union constants in all the backends.
 * Implement the AIR instructions having to do with error unions in the
   LLVM backend.

```

## Parents

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

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