mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-20 05:20:28 +00:00
Comment out t->Struct.are_offsets_being_processed.load()
This commit is contained in:
@@ -4308,9 +4308,9 @@ gb_internal i64 *type_set_offsets_of(Slice<Entity *> const &fields, bool is_pack
|
||||
gb_internal bool type_set_offsets(Type *t) {
|
||||
t = base_type(t);
|
||||
if (t->kind == Type_Struct) {
|
||||
if (t->Struct.are_offsets_being_processed.load()) {
|
||||
return true;
|
||||
}
|
||||
// if (t->Struct.are_offsets_being_processed.load()) {
|
||||
// return true;
|
||||
// }
|
||||
MUTEX_GUARD(&t->Struct.offset_mutex);
|
||||
if (!t->Struct.are_offsets_set) {
|
||||
t->Struct.are_offsets_being_processed.store(true);
|
||||
|
||||
Reference in New Issue
Block a user