mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
ab6631e0ad
commit
c1d5d16c38
1 changed files with 0 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue