Fix of built in aliases for headers.

This commit is contained in:
Christoffer Lerno
2024-06-24 16:00:47 +02:00
parent 4cff80ecea
commit 26f3fe37f4
6 changed files with 55 additions and 45 deletions

View File

@@ -418,7 +418,7 @@ Decl *type_no_export(Type *type)
case TYPE_DISTINCT:
case TYPE_BITSTRUCT:
case TYPE_TYPEDEF:
if (type->decl->is_export) return NULL;
if (!type->decl || type->decl->is_export) return NULL;
return type->decl;
case TYPE_SLICE:
case TYPE_ARRAY: