Unify are_types_identical_unique_tuples

This commit is contained in:
gingerBill
2022-01-19 15:14:15 +00:00
parent 5ff82fc113
commit ecdaac9921
4 changed files with 16 additions and 6 deletions
+1 -1
View File
@@ -483,7 +483,7 @@ OdinDocTypeIndex odin_doc_type(OdinDocWriter *w, Type *type) {
for_array(i, w->type_cache.entries) {
// NOTE(bill): THIS IS SLOW
Type *other = w->type_cache.entries[i].key;
if (are_types_identical(type, other, true)) {
if (are_types_identical_unique_tuples(type, other)) {
OdinDocTypeIndex index = w->type_cache.entries[i].value;
map_set(&w->type_cache, type, index);
return index;