# stage2: fix AstGen for some struct syntaxes · gitcafe/zig

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

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

Visibility: public

Requested revision: 736d14fd5fa5feea83a6efce8b606b62bf165033

Requested commit: 736d14fd5fa5feea83a6efce8b606b62bf165033

Commit: 736d14fd5fa5feea83a6efce8b606b62bf165033

Tree: da48c5f1743c7418ed51c5f9769236529a988be8

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: fix AstGen for some struct syntaxes

 * AstGen: fix not emitting `struct_init_empty` when an explicit type is
   present in struct initialization syntax.
 * AstGen: these two syntaxes now lower to identical ZIR:
   - `var a = A{ .b = c };`
   - `var a = @as(A, .{ .b = c });`
 * Zir: clarify `auto_enum_tag` in the doc comments.
 * LLVM Backend: fix lowering of function return types when the type has
   0 bits.

```

## Parents

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

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