From 3a4bf769ce35b6522b9d386376c8b94e899624e0 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Tue, 4 Feb 2014 18:20:51 +0900 Subject: [PATCH] don't emit duplicate OP_RET in codegen_lambda --- src/codegen.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/codegen.c b/src/codegen.c index 7553f3fd..43ec0e6a 100644 --- a/src/codegen.c +++ b/src/codegen.c @@ -1338,8 +1338,6 @@ codegen_lambda(codegen_state *state, pic_value obj) { /* body */ codegen(state, body); - state->cxt->code[state->cxt->clen].insn = OP_RET; - state->cxt->clen++; } return pop_codegen_context(state); }