aboutsummaryrefslogtreecommitdiff
path: root/src/InternPool.zig
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2024-03-25 19:02:21 +0000
committermlugg <mlugg@mlugg.co.uk>2024-03-26 13:48:06 +0000
commitc6f3e9d79cf849623e6c4f25e02e17cdfab07b7c (patch)
tree0efc0142dd23a67509015113b9e1a3aaa2d6c15a /src/InternPool.zig
parent341857e5cd4fd4453cf9c7d1a6679feb66710d84 (diff)
downloadzig-c6f3e9d79cf849623e6c4f25e02e17cdfab07b7c.tar.gz
zig-c6f3e9d79cf849623e6c4f25e02e17cdfab07b7c.zip
Zcu.Decl: remove `ty` field
`Decl` can no longer store un-interned values, so this field is now unnecessary. The type can instead be fetched with the new `typeOf` helper method, which just gets the type of the Decl's `Value`.
Diffstat (limited to 'src/InternPool.zig')
-rw-r--r--src/InternPool.zig4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/InternPool.zig b/src/InternPool.zig
index daec1f5c0d..e4132e577e 100644
--- a/src/InternPool.zig
+++ b/src/InternPool.zig
@@ -6581,7 +6581,6 @@ pub fn getFuncInstance(ip: *InternPool, gpa: Allocator, arg: GetFuncInstanceKey)
generic_owner,
func_index,
func_extra_index,
- func_ty,
arg.alignment,
arg.section,
);
@@ -6711,7 +6710,6 @@ pub fn getFuncInstanceIes(
generic_owner,
func_index,
func_extra_index,
- func_ty,
arg.alignment,
arg.section,
);
@@ -6723,7 +6721,6 @@ fn finishFuncInstance(
generic_owner: Index,
func_index: Index,
func_extra_index: u32,
- func_ty: Index,
alignment: Alignment,
section: OptionalNullTerminatedString,
) Allocator.Error!Index {
@@ -6735,7 +6732,6 @@ fn finishFuncInstance(
.src_line = fn_owner_decl.src_line,
.has_tv = true,
.owns_tv = true,
- .ty = @import("type.zig").Type.fromInterned(func_ty),
.val = @import("Value.zig").fromInterned(func_index),
.alignment = alignment,
.@"linksection" = section,