don't emit duplicate OP_RET in codegen_lambda

This commit is contained in:
Yuichi Nishiwaki
2014-02-04 18:20:51 +09:00
parent f59ce74148
commit 3a4bf769ce
-2
View File
@@ -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);
}