mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-13 06:41:26 -07:00
Use PtrMap temporarily
This commit is contained in:
+3
-3
@@ -1651,7 +1651,7 @@ gb_internal isize type_info_index(CheckerInfo *info, TypeInfoPair pair, bool err
|
||||
mutex_lock(&info->minimum_dependency_type_info_mutex);
|
||||
|
||||
isize entry_index = -1;
|
||||
uintptr hash = cast(uintptr)pair.hash;
|
||||
u64 hash = pair.hash;
|
||||
isize *found_entry_index = map_get(&info->minimum_dependency_type_info_index_map, hash);
|
||||
if (found_entry_index) {
|
||||
entry_index = *found_entry_index;
|
||||
@@ -6744,12 +6744,12 @@ gb_internal void check_parsed_files(Checker *c) {
|
||||
|
||||
for_array(i, c->info.type_info_types) {
|
||||
auto const &tt = c->info.type_info_types[i];
|
||||
bool exists = map_set_if_not_previously_exists(&c->info.minimum_dependency_type_info_index_map, cast(uintptr)tt.hash, i);
|
||||
bool exists = map_set_if_not_previously_exists(&c->info.minimum_dependency_type_info_index_map, tt.hash, i);
|
||||
if (!exists) {
|
||||
continue;
|
||||
}
|
||||
for (auto const &entry : c->info.minimum_dependency_type_info_index_map) {
|
||||
if (entry.key != cast(uintptr)tt.hash) {
|
||||
if (entry.key != tt.hash) {
|
||||
continue;
|
||||
}
|
||||
auto const &other = c->info.type_info_types[entry.value];
|
||||
|
||||
Reference in New Issue
Block a user