mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Correct type_ptr_set_update and type_ptr_set_exists
This commit is contained in:
@@ -816,6 +816,14 @@ gb_internal bool type_ptr_set_update(PtrSet<Type *> *s, Type *t) {
|
|||||||
if (ptr_set_exists(s, t)) {
|
if (ptr_set_exists(s, t)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
ptr_set_add(s, t);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
gb_internal bool type_ptr_set_exists(PtrSet<Type *> *s, Type *t) {
|
||||||
|
if (ptr_set_exists(s, t)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
// 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
|
||||||
|
|||||||
Reference in New Issue
Block a user