summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorwanabe <s.wanabe@gmail.com>2020-08-08 21:00:51 +0900
committerKazuki Tsujimoto <kazuki@callcc.net>2020-08-16 18:39:08 +0900
commit6bc0c6c18b02c5a00774303733bf1e3628f5e6eb (patch)
treea4154fb31c221cfb8f7411028e9e10e215433c92 /compile.c
parent0759862458c25bb8a7832090545c625c364e5d94 (diff)
Adjust sp for `case ... in pat1 | pat2 ... end`
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3403
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/compile.c b/compile.c
index fa3c513449..beb782398d 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
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;