ruby-changes:62582
From: wanabe <ko1@a...>
Date: Sun, 16 Aug 2020 18:39:34 +0900 (JST)
Subject: [ruby-changes:62582] c866d6563f (master): Adjust sp for `case ... in v1 ... in v2 end`
https://git.ruby-lang.org/ruby.git/commit/?id=c866d6563f From c866d6563f2295d12225addc2e4f8edb677c4e2d Mon Sep 17 00:00:00 2001 From: wanabe <s.wanabe@g...> Date: Sat, 8 Aug 2020 22:34:08 +0900 Subject: Adjust sp for `case ... in v1 ... in v2 end` diff --git a/compile.c b/compile.c index e102dc8..dbdb4b9 100644 --- a/compile.c +++ b/compile.c @@ -6344,6 +6344,9 @@ compile_case3(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *const orig_no https://github.com/ruby/ruby/blob/trunk/compile.c#L6344 while (type == NODE_IN) { LABEL *l1; + if (branch_id) { + ADD_INSN(body_seq, line, putnil); + } l1 = NEW_LABEL(line); ADD_LABEL(body_seq, l1); ADD_INSN(body_seq, line, pop); -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/