From ad394c19d575d9284225c69849d7641b35d3c6d3 Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Thu, 27 Jun 2024 17:21:08 +0200 Subject: [PATCH] Remove asserts from header gen. --- src/compiler/headers.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/compiler/headers.c b/src/compiler/headers.c index e82fbdddd..b343197f5 100644 --- a/src/compiler/headers.c +++ b/src/compiler/headers.c @@ -449,7 +449,6 @@ RETRY: return; case TYPE_DISTINCT: { - assert(type->decl->is_export); if (htable_get(table, type)) return; Type *underlying_type = type->decl->distinct->type; htable_set(table, type, type); @@ -466,7 +465,6 @@ RETRY: type = type->canonical; goto RETRY; } - assert(type->decl->is_export); if (htable_get(table, type)) return; htable_set(table, type, type); Type *underlying_type = type->canonical; @@ -478,7 +476,6 @@ RETRY: } case TYPE_BITSTRUCT: { - assert(type->decl->is_export); if (htable_get(table, type)) return; htable_set(table, type, type); Type *underlying_type = type->decl->bitstruct.base_type->type; @@ -495,7 +492,6 @@ RETRY: case TYPE_ENUM: if (htable_get(table, type)) return; { - assert(type->decl->is_export); Decl *decl = type->decl; htable_set(table, type, type); Type *underlying_type = decl->enums.type_info->type->canonical; @@ -523,7 +519,6 @@ RETRY: case TYPE_UNION: if (htable_get(table, type)) return; { - assert(type->decl->is_export); Decl *decl = type->decl; PRINTF("typedef %s %s__ %s;\n", struct_union_str(decl), decl_get_extname(decl), decl_get_extname(decl)); htable_set(table, type, type);