diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-06-24 11:15:38 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-06-29 11:05:41 +0900 |
commit | bacd03ebdfdd3940084cb54ffc0c2a75b0a4e8d0 (patch) | |
tree | 5c0fab40e2b94824131f73ea5d9d68a73f32dbe9 /compile.c | |
parent | 2b636dc81dcc2540e0548c856ac495722fcd3959 (diff) |
compile_redo: fix wrong condition
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3247
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -6708,7 +6708,7 @@ compile_redo(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *const node, in ADD_INSN(ret, line, putnil); } } - else if (iseq->body->type == ISEQ_TYPE_EVAL && ISEQ_COMPILE_DATA(iseq)->start_label) { + else if (iseq->body->type != ISEQ_TYPE_EVAL && ISEQ_COMPILE_DATA(iseq)->start_label) { LABEL *splabel = NEW_LABEL(0); debugs("redo in block"); |