From c1d5d16c38ccfbcb91b07fad8e667808747cbbbc Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 29 Jul 2017 02:03:11 +0000 Subject: [PATCH] compile.c: fix flip-flop value * compile.c (iseq_compile_each0): as compile_flip_flop always ends with a jump instruction, successive instruction is never reached, but caused stack consistency error without peephole optimization. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- compile.c | 1 - 1 file changed, 1 deletion(-) diff --git a/compile.c b/compile.c index 16ec8b1a5f..614f4d0f44 100644 --- a/compile.c +++ b/compile.c @@ -6244,7 +6244,6 @@ iseq_compile_each0(rb_iseq_t *iseq, LINK_ANCHOR *const ret, NODE *node, int popp LABEL *lfalse = NEW_LABEL(line); CHECK(compile_flip_flop(iseq, ret, node, type == NODE_FLIP2, ltrue, lfalse)); - ADD_INSNL(ret, line, jump, lend); ADD_LABEL(ret, ltrue); ADD_INSN1(ret, line, putobject, Qtrue); ADD_INSNL(ret, line, jump, lend);