aboutsummaryrefslogtreecommitdiff
path: root/backendC
diff options
context:
space:
mode:
authorjohnvg2005-12-12 12:56:51 +0000
committerjohnvg2005-12-12 12:56:51 +0000
commitdacf67fa517e3296509f3ab067d126fcd61a3a28 (patch)
tree9937e5035d299a79463f3e2272b8de281b22f04f /backendC
parentfix counting of the number of arguments by the thunk lifter, to prevent (diff)
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
Diffstat (limited to 'backendC')
-rw-r--r--backendC/CleanCompilerSources/optimisations.c4
1 files changed, 2 insertions, 2 deletions
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;