From 7e19c9566860e78ad536aaa678af8c32531fade9 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sat, 20 May 2023 17:55:40 -0700 Subject: Sema: move `inferred_alloc_const/mut_type` to InternPool Now, all types are migrated to use `InternPool`. The `Type.Tag` enum is deleted in this commit. --- src/Module.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Module.zig') diff --git a/src/Module.zig b/src/Module.zig index b718193aba..982c568d24 100644 --- a/src/Module.zig +++ b/src/Module.zig @@ -6818,7 +6818,7 @@ pub fn singleConstPtrType(mod: *Module, child_type: Type) Allocator.Error!Type { } pub fn adjustPtrTypeChild(mod: *Module, ptr_ty: Type, new_child: Type) Allocator.Error!Type { - const info = ptr_ty.ptrInfoIp(mod.intern_pool); + const info = Type.ptrInfoIp(mod.intern_pool, ptr_ty.toIntern()); return mod.ptrType(.{ .elem_type = new_child.toIntern(), -- cgit v1.2.3