diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-07-29 02:03:11 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-07-29 02:03:11 +0000 |
commit | c1d5d16c38ccfbcb91b07fad8e667808747cbbbc (patch) | |
tree | 2019443b81f1b42c615973f617013b31a6f431be /compile.c | |
parent | ab6631e0ad9a5ae4e796a02c6100a8dae4c08514 (diff) | |
download | ruby-c1d5d16c38ccfbcb91b07fad8e667808747cbbbc.tar.gz |
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
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 1 |
1 files changed, 0 insertions, 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); |