aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-12-22 20:22:18 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-12-22 20:29:26 -0700
commitcc937369fb8fed44e8e1b653f1f22805c84a3507 (patch)
tree70a851043cc1a3ca4c5ff93512f988388ed63e43 /src/Module.zig
parente061d75cdf6a7994dd50f2d28c9f1ed3ed5ec205 (diff)
downloadzig-cc937369fb8fed44e8e1b653f1f22805c84a3507.tar.gz
zig-cc937369fb8fed44e8e1b653f1f22805c84a3507.zip
stage2: `Type.hasCodeGenBits` asserts structs and unions have fields
Previously, this function would return an incorrect result for structs and unions which did not have their fields resolved yet. This required introducing more logic in Sema to resolve types before doing certain things such as creating an anonmyous Decl and emitting function call AIR. As a result a couple more struct tests pass. Oh, and I implemented the language change to make sizeOf for pointers always return pointer size bytes even if the element type is 0 bits.
Diffstat (limited to 'src/Module.zig')
0 files changed, 0 insertions, 0 deletions