summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/codegen.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/codegen.c b/src/codegen.c
index 8d2313314..bf6fd0b3e 100644
--- a/src/codegen.c
+++ b/src/codegen.c
@@ -247,8 +247,7 @@ genop_peep(codegen_scope *s, mrb_code i, int val)
case OP_RETURN:
switch (c0) {
case OP_MOVE:
- s->iseq[s->pc-1] = MKOP_AB(OP_MOVE, 0, GETARG_B(i0));
- genop(s, MKOP_AB(OP_RETURN, 0, OP_R_NORMAL));
+ s->iseq[s->pc-1] = MKOP_AB(OP_RETURN, GETARG_B(i0), OP_R_NORMAL);
return;
case OP_LOADI:
s->iseq[s->pc-1] = MKOP_AsBx(OP_LOADI, 0, GETARG_sBx(i0));