aboutsummaryrefslogtreecommitdiff
path: root/src/type.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2023-05-28 02:41:22 -0400
committerAndrew Kelley <andrew@ziglang.org>2023-06-10 20:47:56 -0700
commit3b6ca1d35b950d67fff5964f0063dadf01f30e2d (patch)
tree953815632535b965c7d32318ca515d8926cf4c4b /src/type.zig
parentd40b83de45db27c8c3e7a1f2ccf892563df43637 (diff)
downloadzig-3b6ca1d35b950d67fff5964f0063dadf01f30e2d.tar.gz
zig-3b6ca1d35b950d67fff5964f0063dadf01f30e2d.zip
Module: move memoized data to the intern pool
This avoids memory management bugs with the previous implementation.
Diffstat (limited to 'src/type.zig')
-rw-r--r--src/type.zig27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/type.zig b/src/type.zig
index 0e30debf0a..bc2ce6fc7e 100644
--- a/src/type.zig
+++ b/src/type.zig
@@ -400,6 +400,9 @@ pub const Type = struct {
.opt,
.aggregate,
.un,
+ // memoization, not types
+ .memoized_decl,
+ .memoized_call,
=> unreachable,
}
}
@@ -613,6 +616,9 @@ pub const Type = struct {
.opt,
.aggregate,
.un,
+ // memoization, not types
+ .memoized_decl,
+ .memoized_call,
=> unreachable,
},
};
@@ -719,6 +725,9 @@ pub const Type = struct {
.opt,
.aggregate,
.un,
+ // memoization, not types
+ .memoized_decl,
+ .memoized_call,
=> unreachable,
};
}
@@ -1050,6 +1059,9 @@ pub const Type = struct {
.opt,
.aggregate,
.un,
+ // memoization, not types
+ .memoized_decl,
+ .memoized_call,
=> unreachable,
},
}
@@ -1464,6 +1476,9 @@ pub const Type = struct {
.opt,
.aggregate,
.un,
+ // memoization, not types
+ .memoized_decl,
+ .memoized_call,
=> unreachable,
},
}
@@ -1695,6 +1710,9 @@ pub const Type = struct {
.opt,
.aggregate,
.un,
+ // memoization, not types
+ .memoized_decl,
+ .memoized_call,
=> unreachable,
}
}
@@ -2250,6 +2268,9 @@ pub const Type = struct {
.opt,
.aggregate,
.un,
+ // memoization, not types
+ .memoized_decl,
+ .memoized_call,
=> unreachable,
},
};
@@ -2586,6 +2607,9 @@ pub const Type = struct {
.opt,
.aggregate,
.un,
+ // memoization, not types
+ .memoized_decl,
+ .memoized_call,
=> unreachable,
},
};
@@ -2728,6 +2752,9 @@ pub const Type = struct {
.opt,
.aggregate,
.un,
+ // memoization, not types
+ .memoized_decl,
+ .memoized_call,
=> unreachable,
},
};