Simplify hashing approach map

This commit is contained in:
gingerBill
2020-11-29 15:50:29 +00:00
parent 97c66c9c73
commit 1dfe0cdd1d
6 changed files with 51 additions and 68 deletions

View File

@@ -1922,6 +1922,9 @@ bool is_type_comparable(Type *t) {
return is_type_comparable(t->Opaque.elem);
case Type_Struct:
if (type_size_of(t) == 0) {
return false;
}
if (t->Struct.is_raw_union) {
return is_type_simple_compare(t);
}