aboutsummaryrefslogtreecommitdiff
path: root/src/types.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-03-26 14:13:55 +0000
committergingerBill <bill@gingerbill.org>2024-03-26 14:13:55 +0000
commit1009182f7b35e38e0fba375ad830fc609a7be831 (patch)
treefee68c401989c30d10fcfb8be587d66cb66259c0 /src/types.cpp
parent620dd2c8125164c912a1f246f07878ffa141e50b (diff)
Fix another #soa race condition bug
Diffstat (limited to 'src/types.cpp')
-rw-r--r--src/types.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/types.cpp b/src/types.cpp
index 6e63f56ed..ebe6271f2 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -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;