mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
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;
|
break;
|
||||||
|
|
||||||
case Type_Struct:
|
case Type_Struct:
|
||||||
|
if (bt->Struct.fields_wait_signal.futex.load() == 0)
|
||||||
|
return;
|
||||||
if (bt->Struct.scope != nullptr) {
|
if (bt->Struct.scope != nullptr) {
|
||||||
for (auto const &entry : bt->Struct.scope->elements) {
|
for (auto const &entry : bt->Struct.scope->elements) {
|
||||||
Entity *e = entry.value;
|
Entity *e = entry.value;
|
||||||
|
|||||||
Executable
BIN
Binary file not shown.
Reference in New Issue
Block a user