Remove unreachable code in OP_R_BREAK

Termination of fiber by `break` results in a `LocalJumpError`, so the indicated code will not be executed.
This commit is contained in:
dearblue
2023-12-11 21:25:08 +09:00
parent 93d842e045
commit 38c7936c94
-8
View File
@@ -2332,14 +2332,6 @@ RETRY_TRY_BLOCK:
goto L_BREAK_ERROR;
}
}
/* break from fiber block */
if (ci == mrb->c->cibase && ci->pc) {
struct mrb_context *c = mrb->c;
mrb->c = c->prev;
c->prev = NULL;
ci = mrb->c->ci;
}
proc = proc->upper;
while (mrb->c->cibase < ci && ci[-1].proc != proc) {
ci--;