diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-03-12 05:48:58 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-03-12 05:48:58 +0000 |
commit | 61d707cb8a6a5c863e54bf1b13328c339e9369b0 (patch) | |
tree | c526b9f0f555a281c4310795ec72b3f1dc4cba84 /compile.c | |
parent | fb1f31ded1d44ebe767e4c8ac0e8173ca1838822 (diff) | |
download | ruby-61d707cb8a6a5c863e54bf1b13328c339e9369b0.tar.gz |
compile.c: NODE_VALUES must not be popped
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -5504,14 +5504,14 @@ iseq_compile_each0(rb_iseq_t *iseq, LINK_ANCHOR *const ret, NODE *node, int popp } case NODE_VALUES:{ NODE *n = node; + if (popped) { + COMPILE_ERROR(ERROR_ARGS "NODE_VALUES: must not be popped"); + } while (n) { CHECK(COMPILE(ret, "values item", n->nd_head)); n = n->nd_next; } ADD_INSN1(ret, line, newarray, INT2FIX(node->nd_alen)); - if (popped) { - ADD_INSN(ret, line, pop); - } break; } case NODE_HASH:{ |