aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-05-20 17:55:40 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-06-10 20:47:54 -0700
commit7e19c9566860e78ad536aaa678af8c32531fade9 (patch)
treed6e90d6c1cf0d13bee52b8107804837658486927 /src/Module.zig
parent65d65f5dda144d76ea9bbd82b2b5aacb09d7ae34 (diff)
downloadzig-7e19c9566860e78ad536aaa678af8c32531fade9.tar.gz
zig-7e19c9566860e78ad536aaa678af8c32531fade9.zip
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.
Diffstat (limited to 'src/Module.zig')
-rw-r--r--src/Module.zig2
1 files changed, 1 insertions, 1 deletions
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(),