Skip to content

Commit 2731b91

Browse files
committed
compile.c: remove unused big
* compile.c (iseq_compile_each): remove unused big flag, `while` loop always leaves a result on the stack. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent df62161 commit 2731b91

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

compile.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3726,10 +3726,6 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
37263726
level++;
37273727
if (ip->compile_data->redo_label != 0) {
37283728
level = 0x8000;
3729-
if (ip->compile_data->loopval_popped == 0) {
3730-
/* need value */
3731-
level |= 0x4000;
3732-
}
37333729
goto break_by_insn;
37343730
}
37353731
else if (ip->type == ISEQ_TYPE_BLOCK) {
@@ -3789,7 +3785,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
37893785
break;
37903786
}
37913787

3792-
level = 0x8000 | 0x4000;
3788+
level = 0x8000;
37933789
if (ip->compile_data->redo_label != 0) {
37943790
/* while loop */
37953791
break;
@@ -3850,8 +3846,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
38503846
}
38513847
else {
38523848
const rb_iseq_t *ip = iseq;
3853-
unsigned long level;
3854-
level = 0x8000 | 0x4000;
3849+
unsigned long level = 0x8000;
38553850

38563851
while (ip) {
38573852
if (!ip->compile_data) {

0 commit comments

Comments
 (0)