From 0c6e5c7880b048deb7174275418602881f637ccd Mon Sep 17 00:00:00 2001 From: ko1 Date: Sat, 28 Oct 2017 11:22:15 +0000 Subject: [PATCH] use `ec` directly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_method.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vm_method.c b/vm_method.c index 4019ca7eed..34cac0ab3c 100644 --- a/vm_method.c +++ b/vm_method.c @@ -258,13 +258,13 @@ method_definition_set(const rb_method_entry_t *me, rb_method_definition_t *def, case VM_METHOD_TYPE_ATTRSET: case VM_METHOD_TYPE_IVAR: { - rb_thread_t *th = GET_THREAD(); + const rb_execution_context_t *ec = GET_EC(); rb_control_frame_t *cfp; int line; def->body.attr.id = (ID)(VALUE)opts; - cfp = rb_vm_get_ruby_level_next_cfp(th->ec, th->ec->cfp); + cfp = rb_vm_get_ruby_level_next_cfp(ec, ec->cfp); if (cfp && (line = rb_vm_get_sourceline(cfp))) { VALUE location = rb_ary_new3(2, rb_iseq_path(cfp->iseq), INT2FIX(line));