# get_codegen_ptr_type returns possible error · gitcafe/zig

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

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

Visibility: public

Requested revision: f247a905419f47f794837c3818636553eebb929c

Requested commit: f247a905419f47f794837c3818636553eebb929c

Commit: f247a905419f47f794837c3818636553eebb929c

Tree: 65b1f3b5a106a68537d31c206dadc3e71dbcff35

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
get_codegen_ptr_type returns possible error

And fix most of the fallout. This also makes optional pointers not
require resolving zero bits, because the comptime value struct layout no
longer depends on whether the type has zero bits.

Thanks to @LemonBoy for the behavior test case

Closes #4357
Closes #4359

```

## Parents

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

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