aboutsummaryrefslogtreecommitdiff
path: root/src/value.zig
diff options
context:
space:
mode:
authorCody Tapscott <topolarity@tapscott.me>2022-03-11 14:18:23 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-03-14 21:42:42 -0700
commit34a6fcd88e20a2491bf6a5396d583a7449cac20b (patch)
tree02eba522b43876b9145d8369332557d47d3f25c5 /src/value.zig
parentbbd750ff05895f29be646bf51e8932c3c9fb14f3 (diff)
downloadzig-34a6fcd88e20a2491bf6a5396d583a7449cac20b.tar.gz
zig-34a6fcd88e20a2491bf6a5396d583a7449cac20b.zip
stage2: Add hasWellDefinedLayout() to type.zig and Sema.zig
This follows the same strategy as sema.typeRequiresComptime() and type.comptimeOnly(): Two versions of the function, one which performs resolution just-in-time and another which asserts that resolution is complete. Thankfully, this doesn't cause very viral type resolution, since auto-layout structs and unions are very common and are known to not have a well-defined layout without resolving their fields.
Diffstat (limited to 'src/value.zig')
0 files changed, 0 insertions, 0 deletions