Comment out t->Struct.are_offsets_being_processed.load()

This commit is contained in:
gingerBill
2026-02-02 11:41:33 +00:00
parent 8594deb4e1
commit a936f3fb7d

View File

@@ -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);