From dacf67fa517e3296509f3ab067d126fcd61a3a28 Mon Sep 17 00:00:00 2001 From: johnvg Date: Mon, 12 Dec 2005 12:56:51 +0000 Subject: another fix for counting the number of arguments in the thunk lifter, to prevent generating functions with too many arguments git-svn-id: https://svn.cs.ru.nl/repos/clean-compiler/trunk@1580 1f8540f1-abd5-4d5b-9d24-4c5ce8603e2d --- backendC/CleanCompilerSources/optimisations.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backendC') diff --git a/backendC/CleanCompilerSources/optimisations.c b/backendC/CleanCompilerSources/optimisations.c index 9955bc1..0a396e9 100644 --- a/backendC/CleanCompilerSources/optimisations.c +++ b/backendC/CleanCompilerSources/optimisations.c @@ -1109,8 +1109,8 @@ static int add_n_new_arguments_for_local_function (ArgP arg_p,int n_arguments) } else { arg_node_p->node_node_id->nid_mark |= NID_LIFTED_BY_OPTIMISE; arg_node_p->node_node_id->nid_forward_node_id=NULL; - - n_arguments=add_n_new_arguments_for_local_function (arg_p->arg_next,n_arguments); + + n_arguments=add_n_new_arguments_for_local_function (arg_p->arg_next,n_arguments+1); if (n_arguments>MAX_N_FUNCTION_ARGUMENTS) arg_node_p->node_node_id->nid_mark &= ~NID_LIFTED_BY_OPTIMISE; -- cgit v1.2.3