From dfd91abfe15e653cba7b61fef73340ea07c6e3e9 Mon Sep 17 00:00:00 2001 From: Jacob Young Date: Sat, 20 May 2023 23:24:39 -0400 Subject: InternPool: add more pointer values --- src/Module.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Module.zig') diff --git a/src/Module.zig b/src/Module.zig index 982c568d24..832368c0d0 100644 --- a/src/Module.zig +++ b/src/Module.zig @@ -6783,7 +6783,7 @@ pub fn intType(mod: *Module, signedness: std.builtin.Signedness, bits: u16) Allo pub fn arrayType(mod: *Module, info: InternPool.Key.ArrayType) Allocator.Error!Type { if (std.debug.runtime_safety and info.sentinel != .none) { - const sent_ty = mod.intern_pool.indexToKey(info.sentinel).typeOf(); + const sent_ty = mod.intern_pool.typeOf(info.sentinel); assert(sent_ty == info.child); } const i = try intern(mod, .{ .array_type = info }); @@ -6802,7 +6802,7 @@ pub fn optionalType(mod: *Module, child_type: InternPool.Index) Allocator.Error! pub fn ptrType(mod: *Module, info: InternPool.Key.PtrType) Allocator.Error!Type { if (std.debug.runtime_safety and info.sentinel != .none) { - const sent_ty = mod.intern_pool.indexToKey(info.sentinel).typeOf(); + const sent_ty = mod.intern_pool.typeOf(info.sentinel); assert(sent_ty == info.elem_type); } const i = try intern(mod, .{ .ptr_type = info }); -- cgit v1.2.3