Commit 7c4bd7ff authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

remove OP_MOVE just before OP_RETURN

parent 472d214a
...@@ -247,8 +247,7 @@ genop_peep(codegen_scope *s, mrb_code i, int val) ...@@ -247,8 +247,7 @@ genop_peep(codegen_scope *s, mrb_code i, int val)
case OP_RETURN: case OP_RETURN:
switch (c0) { switch (c0) {
case OP_MOVE: case OP_MOVE:
s->iseq[s->pc-1] = MKOP_AB(OP_MOVE, 0, GETARG_B(i0)); s->iseq[s->pc-1] = MKOP_AB(OP_RETURN, GETARG_B(i0), OP_R_NORMAL);
genop(s, MKOP_AB(OP_RETURN, 0, OP_R_NORMAL));
return; return;
case OP_LOADI: case OP_LOADI:
s->iseq[s->pc-1] = MKOP_AsBx(OP_LOADI, 0, GETARG_sBx(i0)); s->iseq[s->pc-1] = MKOP_AsBx(OP_LOADI, 0, GETARG_sBx(i0));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment