Adjust sp for case ... in v1 ... in v2 end

This commit is contained in:
wanabe 2020-08-08 22:34:08 +09:00 committed by Kazuki Tsujimoto
parent d594078426
commit c866d6563f
Notes: git 2020-08-16 18:39:43 +09:00

View File

@ -6344,6 +6344,9 @@ compile_case3(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *const orig_no
while (type == NODE_IN) { while (type == NODE_IN) {
LABEL *l1; LABEL *l1;
if (branch_id) {
ADD_INSN(body_seq, line, putnil);
}
l1 = NEW_LABEL(line); l1 = NEW_LABEL(line);
ADD_LABEL(body_seq, l1); ADD_LABEL(body_seq, l1);
ADD_INSN(body_seq, line, pop); ADD_INSN(body_seq, line, pop);