aboutsummaryrefslogtreecommitdiff
path: root/src/types.cpp
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2023-02-28 12:15:54 +0000
committerGitHub <noreply@github.com>2023-02-28 12:15:54 +0000
commit9afd9f9beae310d2a3bea98cd713b22d2f167cf9 (patch)
tree1f5ed60d50eeb282ae4dd451dfe75fab73e32052 /src/types.cpp
parenteb60ec3899922b6b98a5ee1a00766d5d9b9917e1 (diff)
parentc8d3a9121bbed1cff1fee45d6ecf0fa4748f4d21 (diff)
Merge branch 'master' into new-temp-allocator
Diffstat (limited to 'src/types.cpp')
-rw-r--r--src/types.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/types.cpp b/src/types.cpp
index 7a1f17a16..ee610a2ce 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -430,7 +430,6 @@ gb_internal Selection sub_selection(Selection const &sel, isize offset) {
return res;
}
-
gb_global Type basic_types[] = {
{Type_Basic, {Basic_Invalid, 0, 0, STR_LIT("invalid type")}},
@@ -2313,9 +2312,6 @@ gb_internal bool is_type_comparable(Type *t) {
return true;
case Type_Struct:
- if (type_size_of(t) == 0) {
- return false;
- }
if (t->Struct.soa_kind != StructSoa_None) {
return false;
}
@@ -2331,9 +2327,6 @@ gb_internal bool is_type_comparable(Type *t) {
return true;
case Type_Union:
- if (type_size_of(t) == 0) {
- return false;
- }
for_array(i, t->Union.variants) {
Type *v = t->Union.variants[i];
if (!is_type_comparable(v)) {