From ac88162198a6b5f1b8f3e17eaac5fe4b0b411934 Mon Sep 17 00:00:00 2001 From: ko1 Date: Tue, 2 Jun 2015 14:32:33 +0000 Subject: * method.h: remove rb_method_iseq_t::iseqval. While making a r50728, iseqval is needed (to mark correctly), but now just iseqptr is enough. * class.c: catch up this fix. * gc.c: ditto. * proc.c: ditto. * vm_method.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- class.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'class.c') diff --git a/class.c b/class.c index a32b8606af..f3812a5187 100644 --- a/class.c +++ b/class.c @@ -247,7 +247,7 @@ clone_method(VALUE klass, ID mid, const rb_method_entry_t *me) if (me->def->type == VM_METHOD_TYPE_ISEQ) { VALUE newiseqval; rb_cref_t *new_cref; - newiseqval = rb_iseq_clone(me->def->body.iseq.iseqval, klass); + newiseqval = rb_iseq_clone(me->def->body.iseq.iseqptr->self, klass); rb_vm_rewrite_cref_stack(me->def->body.iseq.cref, me->klass, klass, &new_cref); rb_add_method_iseq(klass, mid, newiseqval, new_cref, me->def->flag); RB_GC_GUARD(newiseqval); -- cgit v1.2.3