mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix #2697
This commit is contained in:
+1
-1
@@ -845,7 +845,7 @@ gb_internal bool type_ptr_set_exists(PtrSet<Type *> *s, Type *t) {
|
|||||||
|
|
||||||
// TODO(bill, 2019-10-05): This is very slow and it's probably a lot
|
// TODO(bill, 2019-10-05): This is very slow and it's probably a lot
|
||||||
// faster to cache types correctly
|
// faster to cache types correctly
|
||||||
for (Type *f : *s) if (f->kind == t->kind) {
|
for (Type *f : *s) {
|
||||||
if (are_types_identical(t, f)) {
|
if (are_types_identical(t, f)) {
|
||||||
ptr_set_add(s, t);
|
ptr_set_add(s, t);
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user