summaryrefslogtreecommitdiff
path: root/types.c
diff options
context:
space:
mode:
Diffstat (limited to 'types.c')
-rw-r--r--types.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/types.c b/types.c
index df6dd07..9b5b6e1 100644
--- a/types.c
+++ b/types.c
@@ -2757,12 +2757,12 @@ static Status types_expr(Typer *tr, Expression *e) {
/* if anything happens, make sure we let the user know that this happened while generating a fn */
ErrCtx *err_ctx = e->where.file->ctx;
- typer_arr_add(tr, err_ctx->instance_stack, e->where);
+ arr_add(err_ctx->instance_stack, e->where);
Block *prev_block = tr->block;
tr->block = fn_copy->body.parent;
bool success = types_fn(tr, c->instance->fn, &f->type, c->instance);
tr->block = prev_block;
- arr_remove_lasta(err_ctx->instance_stack, tr->allocr);
+ arr_remove_last(err_ctx->instance_stack);
if (!success) return false;
}