summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--eshtrans/backend/codegen.esh5
1 files changed, 4 insertions, 1 deletions
diff --git a/eshtrans/backend/codegen.esh b/eshtrans/backend/codegen.esh
index 9ceb3e2..6dc3d64 100644
--- a/eshtrans/backend/codegen.esh
+++ b/eshtrans/backend/codegen.esh
@@ -109,7 +109,10 @@ codegen_sub()
printf '__fn_start %s %s;' \
"${tu_id}" "${fname#*${US}}"
;;
- T_FN_END|T_RETURN)
+ T_FN_END)
+ printf '__fn_end;'
+ ;;
+ T_RETURN)
printf '__fn_end; '
;;
esac