From: Michael Wallner Date: Tue, 17 Oct 2017 08:49:40 +0000 (+0200) Subject: deduct variable names from implementation X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=8d1d1243a8a42b0046ac670808913b3bb06c994b;p=m6w6%2Fext-psi deduct variable names from implementation --- diff --git a/src/types/free_exp.c b/src/types/free_exp.c index 5603554..57ede26 100644 --- a/src/types/free_exp.c +++ b/src/types/free_exp.c @@ -102,8 +102,7 @@ bool psi_free_exp_validate(struct psi_data *data, struct psi_free_exp *exp, /* now check for known vars */ exp->let = calloc(psi_plist_count(exp->vars), sizeof(*exp->let)); for (i = 0; psi_plist_get(exp->vars, i, &free_var); ++i) { - if (!psi_decl_arg_get_by_var(free_var, impl->decl->args, - impl->decl->func)) { + if (!psi_impl_get_decl_arg(impl, free_var)) { data->error(data, free_var->token, PSI_WARNING, "Unknown variable '%s' of `free` statement" " of implementation '%s'",