aboutsummaryrefslogtreecommitdiff
path: root/backendC/CleanCompilerSources
diff options
context:
space:
mode:
authorjohnvg2015-08-18 12:44:51 +0000
committerjohnvg2015-08-18 12:44:51 +0000
commitd876c560f5be5669b7a72ac577310d061dbfc9f6 (patch)
treeeeac5c7fac43414612974e0a454bfdd9af3fb6ca /backendC/CleanCompilerSources
parentadd descriptors of unboxed sub records to .record directive, in reverse order (diff)
fix previous version, add return before next case in switch instruction
git-svn-id: https://svn.cs.ru.nl/repos/clean-compiler/trunk@2607 1f8540f1-abd5-4d5b-9d24-4c5ce8603e2d
Diffstat (limited to 'backendC/CleanCompilerSources')
-rw-r--r--backendC/CleanCompilerSources/instructions.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/backendC/CleanCompilerSources/instructions.c b/backendC/CleanCompilerSources/instructions.c
index cf7c131..b076f5f 100644
--- a/backendC/CleanCompilerSources/instructions.c
+++ b/backendC/CleanCompilerSources/instructions.c
@@ -1148,11 +1148,12 @@ static void GenABStackElemsForRecordDesc (StateS state)
}
}
FPutC (')', OutFile);
+ return;
case RecordState:
argstates = state.state_record_arguments;
FPutC ('(', OutFile);
for (arity=0; arity < state.state_arity; ++arity)
- GenABStackElems (argstates[arity]);
+ GenABStackElemsForRecordDesc (argstates[arity]);
FPutC (')', OutFile);
return;
case ArrayState: