aboutsummaryrefslogtreecommitdiff
path: root/backendC
diff options
context:
space:
mode:
authorjohnvg2010-11-11 14:24:06 +0000
committerjohnvg2010-11-11 14:24:06 +0000
commit884b390cf940d65c3270501130961cacdcdf9b5b (patch)
tree56da081718ec5d1b4c57fbd1e140f5db09cbb1e4 /backendC
parentadd prototype of function findNextFileC, don't use c++ comments (diff)
prevent crash for tail recursive modulo cons function with overloaded case
git-svn-id: https://svn.cs.ru.nl/repos/clean-compiler/trunk@1807 1f8540f1-abd5-4d5b-9d24-4c5ce8603e2d
Diffstat (limited to 'backendC')
-rw-r--r--backendC/CleanCompilerSources/codegen3.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/backendC/CleanCompilerSources/codegen3.c b/backendC/CleanCompilerSources/codegen3.c
index 1569b0b..0303b1b 100644
--- a/backendC/CleanCompilerSources/codegen3.c
+++ b/backendC/CleanCompilerSources/codegen3.c
@@ -2720,6 +2720,8 @@ struct saved_node_id_ref_counts* save_rhs_node_id_ref_counts
NodeIdRefCountListP node_id_ref_count_elem_p;
case_node_p=arg_p->arg_node;
+ if (case_node_p->node_kind==OverloadedCaseNode)
+ case_node_p=case_node_p->node_node;
for_l (node_id_ref_count_elem_p,case_node_p->node_node_id_ref_counts,nrcl_next){
struct saved_case_node_id_ref_counts *new_scnirc_p;