From c6f3e9d79cf849623e6c4f25e02e17cdfab07b7c Mon Sep 17 00:00:00 2001 From: mlugg Date: Mon, 25 Mar 2024 19:02:21 +0000 Subject: 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`. --- src/InternPool.zig | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/InternPool.zig') 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, -- cgit v1.2.3