aboutsummaryrefslogtreecommitdiffstats
path: root/node.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-09 02:06:45 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-09 02:06:45 +0000
commit01176e04738bc5d7c7d38499802bfc63be127907 (patch)
treedb736c6b23d9e3916b4cd5dce980e8aa3f644bf6 /node.c
parent5b3ac017650ea4cf5b4801bdfc7a44681182ff8a (diff)
downloadruby-01176e04738bc5d7c7d38499802bfc63be127907.tar.gz
no mark of u3 in NODE_BLOCK_PASS
* node.c (rb_gc_mark_node): u3 in NODE_BLOCK_PASS is not used and does not need to be marked. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'node.c')
-rw-r--r--node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/node.c b/node.c
index a22c456249..b06e6dc175 100644
--- a/node.c
+++ b/node.c
@@ -1068,7 +1068,6 @@ rb_gc_mark_node(NODE *obj)
case NODE_RESCUE:
case NODE_RESBODY:
case NODE_CLASS:
- case NODE_BLOCK_PASS:
case NODE_MATCH2:
rb_gc_mark(RNODE(obj)->u2.value);
/* fall through */
@@ -1107,6 +1106,7 @@ rb_gc_mark_node(NODE *obj)
case NODE_ALIAS:
case NODE_VALIAS:
case NODE_ARGSCAT:
+ case NODE_BLOCK_PASS:
rb_gc_mark(RNODE(obj)->u1.value);
/* fall through */
case NODE_GASGN: /* 2 */