diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-28 11:22:15 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-28 11:22:15 +0000 |
commit | 0c6e5c7880b048deb7174275418602881f637ccd (patch) | |
tree | 4ce3914f22b98f42b94af0b4b13f40479432f6a9 /vm_method.c | |
parent | abfdaf20a6cada238c6bfd352c5375ed56b18bdc (diff) |
use `ec` directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
-rw-r--r-- | vm_method.c | 4 |
1 files 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)); |