ruby-changes:62585
From: wanabe <ko1@a...>
Date: Sun, 16 Aug 2020 18:39:39 +0900 (JST)
Subject: [ruby-changes:62585] 6bc0c6c18b (master): Adjust sp for `case ... in pat1 | pat2 ... end`
https://git.ruby-lang.org/ruby.git/commit/?id=6bc0c6c18b From 6bc0c6c18b02c5a00774303733bf1e3628f5e6eb Mon Sep 17 00:00:00 2001 From: wanabe <s.wanabe@g...> Date: Sat, 8 Aug 2020 21:00:51 +0900 Subject: Adjust sp for `case ... in pat1 | pat2 ... end` diff --git a/compile.c b/compile.c index fa3c513..beb7823 100644 --- a/compile.c +++ b/compile.c @@ -6228,6 +6228,7 @@ iseq_compile_pattern_each(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *c https://github.com/ruby/ruby/blob/trunk/compile.c#L6228 ADD_LABEL(ret, match_succeeded); ADD_INSN(ret, line, pop); ADD_INSNL(ret, line, jump, matched); + ADD_INSN(ret, line, putnil); ADD_LABEL(ret, fin); CHECK(iseq_compile_pattern_each(iseq, ret, node->nd_2nd, matched, unmatched, TRUE, deconstructed_pos)); break; -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/