mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #6137 from dearblue/fiber-unreachable
Remove unreachable blocks in `OP_RETURN`
This commit is contained in:
@@ -2342,16 +2342,6 @@ RETRY_TRY_BLOCK:
|
||||
|
||||
NORMAL_RETURN:
|
||||
ci = mrb->c->ci;
|
||||
|
||||
if (ci == mrb->c->cibase) {
|
||||
struct mrb_context *c;
|
||||
c = mrb->c;
|
||||
|
||||
if (c->prev && !c->vmexec && c->prev->ci == c->prev->cibase) {
|
||||
RAISE_LIT(mrb, E_FIBER_ERROR, "double resume");
|
||||
}
|
||||
}
|
||||
|
||||
v = regs[a];
|
||||
mrb_gc_protect(mrb, v);
|
||||
CHECKPOINT_RESTORE(RBREAK_TAG_BREAK) {
|
||||
|
||||
Reference in New Issue
Block a user