summaryrefslogtreecommitdiff
path: root/types.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-02-19 21:40:41 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-02-19 21:40:41 -0500
commitad08aef58833b35d488dcad40a36cf237a4119c7 (patch)
treecc876d4c38250dbf9272a723a6fb275e652894a6 /types.c
parent98585d13741499bb370e9c9bedd0d2c390905f21 (diff)
more struct params
Diffstat (limited to 'types.c')
-rw-r--r--types.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/types.c b/types.c
index be72a85..4e0b49c 100644
--- a/types.c
+++ b/types.c
@@ -581,6 +581,7 @@ static bool type_resolve_(Typer *tr, Type *t, Location where, bool is_reference)
}
}
typer_block_exit(tr);
+ assert(tr->block != &t->struc->scope);
t->struc->instance_id = 0;
t->struc->flags |= STRUCT_DEF_RESOLVED;
}