mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00: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);
|
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) {
|
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);
|
mutex_unlock(&m->types_mutex);
|
||||||
|
|||||||
Reference in New Issue
Block a user