# stage2: improve handling of 0 bit types · gitcafe/zig

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

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

Visibility: public

Requested revision: abc30f79489b68f6dc0ee4b408c63a8e783215d1

Requested commit: abc30f79489b68f6dc0ee4b408c63a8e783215d1

Commit: abc30f79489b68f6dc0ee4b408c63a8e783215d1

Tree: 0979982ebfa529405ae0e6014f910a3cf496aa14

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: improve handling of 0 bit types

 * Sema: zirAtomicLoad handles 0-bit types correctly
 * LLVM backend: when lowering function types, elide parameters
   with 0-bit types.
 * Type: abiSize handles u0/i0 correctly

```

## Parents

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

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