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

avoid duplicated OP_RETURN

parent f166f63f
......@@ -267,6 +267,8 @@ genop_peep(codegen_scope *s, mrb_code i, int val)
break;
case OP_RETURN:
switch (c0) {
case OP_RETURN:
return;
case OP_MOVE:
s->iseq[s->pc-1] = MKOP_AB(OP_RETURN, GETARG_B(i0), OP_R_NORMAL);
return;
......
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