summaryrefslogtreecommitdiff
path: root/sdecls_cgen.c
diff options
context:
space:
mode:
Diffstat (limited to 'sdecls_cgen.c')
-rw-r--r--sdecls_cgen.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sdecls_cgen.c b/sdecls_cgen.c
index ce89ad6..e490fc8 100644
--- a/sdecls_cgen.c
+++ b/sdecls_cgen.c
@@ -93,7 +93,9 @@ static void cgen_sdecls_expr(CGenerator *g, Expression *e) {
} break;
default: break;
}
- cgen_recurse_subexprs(g, e, cgen_sdecls_expr, cgen_sdecls_block, cgen_sdecls_decl);
+ if (e->kind != EXPR_IDENT) {
+ cgen_recurse_subexprs(g, e, cgen_sdecls_expr, cgen_sdecls_block, cgen_sdecls_decl);
+ }
if (e->kind == EXPR_NMS) {
arr_remove_last(&g->nms_prefixes);
}