# stage1: Fix constant folding of single-element enums · gitcafe/zig

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

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

Visibility: public

Requested revision: 865d6df03e20b3338bafb15c23bce6b5912ecf88

Requested commit: 865d6df03e20b3338bafb15c23bce6b5912ecf88

Commit: 865d6df03e20b3338bafb15c23bce6b5912ecf88

Tree: 1ca85a887e3057457c672397c4d9925d0c954eaa

Author: LemonBoy

Committer: LemonBoy

## Message

```
stage1: Fix constant folding of single-element enums

Fill in the correct value instead of leaving everything uninitialized.
This problem can be noticed in behavior/union.zig but it's masked by
some other "optimization" kicking in at the wrong time, the following
commits will address that.

```

## Parents

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

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