From ae2cae8a4757423fc653810fb8d1a20d67e6519a Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Tue, 4 Feb 2014 18:22:18 +0900 Subject: [PATCH] duplicate OP_RET --- src/codegen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codegen.c b/src/codegen.c index 43ec0e6a..5226d010 100644 --- a/src/codegen.c +++ b/src/codegen.c @@ -264,7 +264,7 @@ analyze(analyze_state *state, pic_value obj, bool tailpos) tag = pic_sym(pic_car(pic, res)); if (tailpos) { - if (tag == pic->sIF || tag == pic->sBEGIN || tag == state->sTAILCALL) { + if (tag == pic->sIF || tag == pic->sBEGIN || tag == state->sTAILCALL || tag == state->sRETURN) { /* pass through */ } else {