# stage2: finish debug info for unions in the LLVM backend · gitcafe/zig

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

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

Visibility: public

Requested revision: f4a357d7209db61acdfcb24ecec316da66eb318d

Requested commit: f4a357d7209db61acdfcb24ecec316da66eb318d

Commit: f4a357d7209db61acdfcb24ecec316da66eb318d

Tree: 4cca3c0a134ceda850bcc23309cda5352774185a

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: finish debug info for unions in the LLVM backend

Sema:

 * queue full resolution of std.builtin.Type.Error when doing `@typeInfo`
   for error sets.

LLVM backend:

 * change a TODO comment to a proper explanation of why debug info
   for structs is left as a fwd decl sometimes.
 * remove handling of packed unions which does not match the type
   information or constant generation code.
 * remove copy+pasted code
 * fix union debug info not matching the memory layout
 * remove unnecessary error checks and type casting

```

## Parents

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

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