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 3fe21bd..a3d35d2 100644
--- a/decls_cgen.c
+++ b/decls_cgen.c
@@ -10,8 +10,7 @@ static bool cgen_decls_decl(CGenerator *g, Declaration *d);
static bool cgen_decls_fn_instances(CGenerator *g, Expression *e) {
assert(e->kind == EXPR_FN);
FnExpr *f = &e->fn;
- FnType *type = &e->type.fn;
- assert(type->constness);
+ assert(e->type.fn.constness);
Instance **data = f->instances.data;
for (U64 i = 0; i < f->instances.cap; i++) {
if (f->instances.occupied[i]) {