avoid duplicated OP_RETURN

This commit is contained in:
Yukihiro Matsumoto
2012-10-20 09:48:04 +09:00
parent f166f63f45
commit 7fe6d00ff5
+2
View File
@@ -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;