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.
This commit is contained in:
Andrew Kelley
2023-05-20 17:55:40 -07:00
parent 65d65f5dda
commit 7e19c95668
11 changed files with 601 additions and 873 deletions

View File

@@ -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(),