mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-13 01:21:38 -07:00
prefer Type pointer over LLVMTypeRef when doing a struct_field_remapping lookup
This commit is contained in:
@@ -981,9 +981,9 @@ gb_internal lbStructFieldRemapping lb_get_struct_remapping(lbModule *m, Type *t)
|
||||
|
||||
mutex_lock(&m->types_mutex);
|
||||
|
||||
auto *field_remapping = map_get(&m->struct_field_remapping, cast(void *)struct_type);
|
||||
auto *field_remapping = map_get(&m->struct_field_remapping, cast(void *)t);
|
||||
if (field_remapping == nullptr) {
|
||||
field_remapping = map_get(&m->struct_field_remapping, cast(void *)t);
|
||||
field_remapping = map_get(&m->struct_field_remapping, cast(void *)struct_type);
|
||||
}
|
||||
|
||||
mutex_unlock(&m->types_mutex);
|
||||
|
||||
Reference in New Issue
Block a user