diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-15 22:51:51 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-15 22:51:51 +0000 |
commit | 202cb99c86387f351f38266aff95fc1563a5ede7 (patch) | |
tree | a14776f699e02285b387f3a3a0d70cd9ebbbf9c6 /iseq.c | |
parent | 5c9194fe1f5ebfc864b3516beb0c23be2af2f9e3 (diff) | |
download | ruby-202cb99c86387f351f38266aff95fc1563a5ede7.tar.gz |
* iseq.c (set_relation), vm_insnhelper.c (vm_cref_push): nd_file
is always zero-cleared.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r-- | iseq.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -183,11 +183,9 @@ set_relation(rb_iseq_t *iseq, const VALUE parent) if (type == ISEQ_TYPE_TOP) { /* toplevel is private */ iseq->cref_stack = NEW_BLOCK(rb_cObject); - iseq->cref_stack->nd_file = 0; iseq->cref_stack->nd_visi = NOEX_PRIVATE; if (th->top_wrapper) { NODE *cref = NEW_BLOCK(th->top_wrapper); - cref->nd_file = 0; cref->nd_visi = NOEX_PRIVATE; cref->nd_next = iseq->cref_stack; iseq->cref_stack = cref; @@ -195,7 +193,6 @@ set_relation(rb_iseq_t *iseq, const VALUE parent) } else if (type == ISEQ_TYPE_METHOD || type == ISEQ_TYPE_CLASS) { iseq->cref_stack = NEW_BLOCK(0); /* place holder */ - iseq->cref_stack->nd_file = 0; } else if (RTEST(parent)) { rb_iseq_t *piseq; |