# cbe: elide block result allocation for 0-bit types · gitcafe/zig

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

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

Visibility: public

Requested revision: 7a85ad151daece3d0bba3c8d23081502a0956c95

Requested commit: 7a85ad151daece3d0bba3c8d23081502a0956c95

Commit: 7a85ad151daece3d0bba3c8d23081502a0956c95

Tree: 4f11b16bdf5c0ae231df3b5463b32074389797b5

Author: mlugg

Committer: Andrew Kelley

## Message

```
cbe: elide block result allocation for 0-bit types

This logic already existed for the void type, but is also necessary for
other 0-bit types. Without it, we try to alloc a local for a 0-bit type
which gets translated to a local of type `void` which C doesn't like.

```

## Parents

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

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