aboutsummaryrefslogtreecommitdiff
path: root/src/type.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-03-14 12:28:52 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-03-14 12:28:52 -0700
commit5ea94e7715607e986298908536cdd3d9dfdd0ce9 (patch)
treed2cf8e70d091d0bcf0fa200a5b0274881831b67b /src/type.zig
parent1ebe3bd01d13b28b3ecd4962f0f70344fe75ba4d (diff)
downloadzig-5ea94e7715607e986298908536cdd3d9dfdd0ce9.tar.gz
zig-5ea94e7715607e986298908536cdd3d9dfdd0ce9.zip
stage2: rework Value storage of structs and arrays
Now they both use `Value.Tag.aggregate`. Additionally the LLVM backend now has implemented lowering of tuple values.
Diffstat (limited to 'src/type.zig')
-rw-r--r--src/type.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/type.zig b/src/type.zig
index 10f0b0325d..89f0e84b70 100644
--- a/src/type.zig
+++ b/src/type.zig
@@ -3568,6 +3568,8 @@ pub const Type = extern union {
.const_slice_u8,
.const_slice,
.mut_slice,
+ .tuple,
+ .empty_struct_literal,
=> return null,
.pointer => return self.castTag(.pointer).?.data.sentinel,