aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjohnvg2002-03-06 16:11:04 +0000
committerjohnvg2002-03-06 16:11:04 +0000
commit07fb2d5c8f7ee5dd64e6e3f097db99df802dc038 (patch)
tree14eda19329aee22d4f3895c4e6dfc4cd6ef8d9ee
parentimprove tail recursion modulo cons optimisation (diff)
bug fix in 'improved' tail recursion modulo cons optimisation
git-svn-id: https://svn.cs.ru.nl/repos/clean-compiler/trunk@1048 1f8540f1-abd5-4d5b-9d24-4c5ce8603e2d
-rw-r--r--backendC/CleanCompilerSources/codegen3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backendC/CleanCompilerSources/codegen3.c b/backendC/CleanCompilerSources/codegen3.c
index 48dfdc8..0402a8c 100644
--- a/backendC/CleanCompilerSources/codegen3.c
+++ b/backendC/CleanCompilerSources/codegen3.c
@@ -2495,7 +2495,7 @@ static int tail_call_modulo_cons_call (NodeP node_p,NodeDefP node_defs)
break;
}
- if (n_node_id_refs!=0)
+ if (n_node_id_refs==0)
return 1;
}
}