summaryrefslogtreecommitdiff
path: root/decls_cgen.c
diff options
context:
space:
mode:
Diffstat (limited to 'decls_cgen.c')
-rw-r--r--decls_cgen.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/decls_cgen.c b/decls_cgen.c
index 70e405c..bd97756 100644
--- a/decls_cgen.c
+++ b/decls_cgen.c
@@ -164,8 +164,7 @@ static void cgen_fn_decl(CGenerator *g, FnExpr *f, Type *t) {
cgen_nl(g);
return;
}
- FnType *fn_type = &t->fn;
- if (fn_type->constness) {
+ if (f->instances.data) {
cgen_decls_fn_instances(g, f);
} else {
cgen_single_fn_decl(g, f, 0, 0);