# stage2: Change optional non-null field to i8 · gitcafe/zig

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

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

Visibility: public

Requested revision: b93a38860d58135072f8a1d7f6258175aa74e0fa

Requested commit: b93a38860d58135072f8a1d7f6258175aa74e0fa

Commit: b93a38860d58135072f8a1d7f6258175aa74e0fa

Tree: 9e030102d25fe7ec2570e7561d72ed356ca23a57

Author: Cody Tapscott

Committer: Andrew Kelley

## Message

```
stage2: Change optional non-null field to i8

This is a workaround for https://github.com/llvm/llvm-project/issues/56585
which causes writes to i1 in memory to be optimized to an incorrect value.
Unfortunately, this does not save users from running into this bug with u1
in their own types.

However, this does seem to be enough to get the behavior tests working.
This resolves #11450 on my machine.

```

## Parents

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

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