From 985e4eed6070995de854ed4b84981bbb89a81c45 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Fri, 4 Aug 2023 16:00:10 +0100 Subject: Fix #2697 --- src/types.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/types.cpp') 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 *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; -- cgit v1.2.3