# ir: Fix codegen of ?\*T types where T is zero-sized · gitcafe/zig

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

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

Visibility: public

Requested revision: 1f44b29724b52433d84b43345a52da59f9220e62

Requested commit: 1f44b29724b52433d84b43345a52da59f9220e62

Commit: 1f44b29724b52433d84b43345a52da59f9220e62

Tree: a02ff60c378f78fee29d6559d44954b13ce0417a

Author: LemonBoy

Committer: Andrew Kelley

## Message

```
ir: Fix codegen of ?*T types where T is zero-sized

* Fix codegen for optional types that decay to a pointer, the type
  behaves as a boolean
* Fix comptime evaluation of zero-sized arrays, always initialize the
  internal array elements

Closes #4673

```

## Parents

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

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