diff options
| author | gingerBill <bill@gingerbill.org> | 2024-03-27 16:48:51 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-03-27 16:48:51 +0000 |
| commit | cf9bdc134cf28c9a1720ffe8bdfcd9fa1bdf1543 (patch) | |
| tree | b6c4d3520a4267b3a4a55dcad509029905ad165c /src/types.cpp | |
| parent | 7b387fd3aa9b943929dcb73f669d8151837f0a24 (diff) | |
Fix #3341
Diffstat (limited to 'src/types.cpp')
| -rw-r--r-- | src/types.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/types.cpp b/src/types.cpp index ebe6271f2..256c654ac 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -1061,6 +1061,13 @@ gb_internal Type *alloc_type_struct() { return t; } +gb_internal Type *alloc_type_struct_complete() { + Type *t = alloc_type(Type_Struct); + wait_signal_set(&t->Struct.fields_wait_signal); + return t; +} + + gb_internal Type *alloc_type_union() { Type *t = alloc_type(Type_Union); return t; |