# sema: Add union alignment resolution · gitcafe/zig

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

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

Visibility: public

Requested revision: 4d044ee7e0b1ca61b8f2205f318449780ae23bd2

Requested commit: 4d044ee7e0b1ca61b8f2205f318449780ae23bd2

Commit: 4d044ee7e0b1ca61b8f2205f318449780ae23bd2

Tree: 682b42b724238e7dc0231685eecaf0f408a1620e

Author: kcbanner

Committer: Matthew Lugg

## Message

```
sema: Add union alignment resolution

- Add resolveUnionAlignment, to resolve a union's alignment only, without triggering layout resolution.
- Update resolveUnionLayout to cache size, alignment, and padding. abiSizeAdvanced and abiAlignmentAdvanced
  now use this information instead of computing it each time.

```

## Parents

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

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