aboutsummaryrefslogtreecommitdiffstats
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-03 22:27:51 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-03 22:27:51 +0000
commitffa44cfe416178217fc5b345dcc551d7c2313f34 (patch)
treec399c77a5b8318be4521dbf0033214fcbed0d601 /vm_insnhelper.c
parent4056e6adde5b0623c602e5ddc5e34d5b5db11235 (diff)
downloadruby-ffa44cfe416178217fc5b345dcc551d7c2313f34.tar.gz
* method.h: introduce rb_method_refined_t for refined method entry.
* class.c (move_refined_method): catch up this fix. * gc.c (mark_method_entry): ditto. * vm_eval.c (vm_call0_body): ditto. * vm_insnhelper.c (vm_call_method): ditto. * vm_method.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index c4aca3a4f7..a64529fbb2 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -2019,8 +2019,8 @@ vm_call_method(rb_thread_t *th, rb_control_frame_t *cfp, rb_call_info_t *ci)
}
no_refinement_dispatch:
- if (ci->me->def->body.orig_me) {
- ci->me = ci->me->def->body.orig_me;
+ if (ci->me->def->body.refined.orig_me) {
+ ci->me = ci->me->def->body.refined.orig_me;
if (UNDEFINED_METHOD_ENTRY_P(ci->me)) {
ci->me = 0;
}