diff options
| author | gingerBill <bill@gingerbill.org> | 2023-08-04 16:00:10 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-08-04 16:00:10 +0100 |
| commit | 985e4eed6070995de854ed4b84981bbb89a81c45 (patch) | |
| tree | 0f1dd6827e8a5406fd29ef7faf8388137863a6ba /src/types.cpp | |
| parent | 9d0583e0d2095cf94056cb8d5f47851d65c757a4 (diff) | |
Fix #2697
Diffstat (limited to 'src/types.cpp')
| -rw-r--r-- | src/types.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/types.cpp b/src/types.cpp index 3d865c713..a4856f767 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -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 // faster to cache types correctly - for (Type *f : *s) if (f->kind == t->kind) { + for (Type *f : *s) { if (are_types_identical(t, f)) { ptr_set_add(s, t); return true; |