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

@@ -953,10 +953,8 @@ static void sema_recursively_import(Type *type)
{
if (!type) return;
Decl *decl = type_no_export(type);
printf("Recursively import %s %p.\n", type->name, decl);
if (!decl) return;
decl->is_export = true;
printf("Recursively import %s.\n", type->name);
if (decl->resolve_status != RESOLVE_DONE) return;
decl->extname = NULL;
assert(!decl->has_extname);