From 3d3c0f04e26d3f07983601dc91714e3dca447206 Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Fri, 17 Jan 2020 17:33:12 -0500 Subject: code cleanup (FnExpr now contains Location) --- infer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'infer.c') diff --git a/infer.c b/infer.c index 98d5635..f577988 100644 --- a/infer.c +++ b/infer.c @@ -1,4 +1,4 @@ -static bool call_arg_param_order(Allocator *allocr, FnExpr *fn, Location fn_where, Type *fn_type, Argument *args, Location where, U16 **param_indices); +static bool call_arg_param_order(Allocator *allocr, FnExpr *fn, Type *fn_type, Argument *args, Location where, U16 **param_indices); static bool types_expr(Typer *tr, Expression *e); /* resolved_to should have the same value as to, but not consist of any identifiers which aren't in scope right now */ @@ -52,7 +52,7 @@ static bool infer_from_expr(Typer *tr, Expression *match, Expression *to, Expres if (!types_expr(tr, f)) return false; FnExpr *fn_decl = idecl->decl->expr.fn; - if (!call_arg_param_order(tr->allocr, fn_decl, idecl->decl->where, &f->type, m_args, match->where, &order)) + if (!call_arg_param_order(tr->allocr, fn_decl, &f->type, m_args, match->where, &order)) return false; } for (size_t i = 0; i < nargs; ++i) { -- cgit v1.2.3