summaryrefslogtreecommitdiff
path: root/decls_cgen.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-01-06 17:17:03 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-01-06 17:17:03 -0500
commitb22a2b562bdb2f3ca4a6ae304f9231d48f441f9d (patch)
treeccd1dea2437aac0b8a9a70d29885c348bc276fb2 /decls_cgen.c
parent3d226be3dd8f450333a6f381a9e4ff8011b94f60 (diff)
started importing
Diffstat (limited to 'decls_cgen.c')
-rw-r--r--decls_cgen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/decls_cgen.c b/decls_cgen.c
index 85c574c..b6e7e8b 100644
--- a/decls_cgen.c
+++ b/decls_cgen.c
@@ -152,7 +152,7 @@ static bool cgen_decls_decl(CGenerator *g, Declaration *d) {
for (int i = 0, n_idents = (int)arr_len(d->idents); i < n_idents; ++i) {
Identifier ident = d->idents[i];
Type *type = decl_type_at_index(d, i);
- if (type->kind != TYPE_TYPE) {
+ if (!type_contains_compileonly_type(type)) {
if (ident->export_name)
cgen_write(g, "extern ");
else