mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-14 23:33:15 +00:00
Merge pull request #3335 from rick-masters/fix_incomplete_struct_type
Don't add type info for incomplete structs.
This commit is contained in:
@@ -2028,6 +2028,8 @@ gb_internal void add_type_info_type_internal(CheckerContext *c, Type *t) {
|
||||
break;
|
||||
|
||||
case Type_Struct:
|
||||
if (bt->Struct.fields_wait_signal.futex.load() == 0)
|
||||
return;
|
||||
if (bt->Struct.scope != nullptr) {
|
||||
for (auto const &entry : bt->Struct.scope->elements) {
|
||||
Entity *e = entry.value;
|
||||
|
||||
Reference in New Issue
Block a user