Fix another #soa race condition bug

This commit is contained in:
gingerBill
2024-03-26 14:13:55 +00:00
parent 620dd2c812
commit 1009182f7b
6 changed files with 78 additions and 23 deletions

View File

@@ -3772,6 +3772,8 @@ gb_internal i64 type_align_of_internal(Type *t, TypePath *path) {
return 1;
}
type_set_offsets(t);
i64 max = 1;
for_array(i, t->Struct.fields) {
Type *field_type = t->Struct.fields[i]->type;