aboutsummaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-07-11 22:34:03 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-07-13 02:38:13 -0400
commit4a28c1d5c3627510cef97b88ee6b3988f65ac0dd (patch)
tree17d331556c594b52a4f03c143bf2720dbc3afeca /src/codegen
parent3708e26f4b8b9514f055ae2a0571d3290414bf8b (diff)
downloadzig-4a28c1d5c3627510cef97b88ee6b3988f65ac0dd.tar.gz
zig-4a28c1d5c3627510cef97b88ee6b3988f65ac0dd.zip
stage2: lower each struct field type, align, init separately
Previously, struct types, alignment values, and initialization expressions were all lowered into the same ZIR body, which caused false positive "depends on itself" errors when the initialization expression depended on the size of the struct. This also uses ResultLoc.coerced_ty for struct field alignment and initialization values. The resulting ZIR encoding ends up being roughly the same, neither smaller nor larger than previously. Closes #12029
Diffstat (limited to 'src/codegen')
0 files changed, 0 insertions, 0 deletions