diff options
Diffstat (limited to 'vm_trace.c')
-rw-r--r-- | vm_trace.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vm_trace.c b/vm_trace.c index 428c4a0170..9bb5e78b3d 100644 --- a/vm_trace.c +++ b/vm_trace.c @@ -23,6 +23,7 @@ #include "eval_intern.h" #include "internal.h" +#include "internal/class.h" #include "internal/hash.h" #include "internal/symbol.h" #include "iseq.h" @@ -724,7 +725,7 @@ call_trace_func(rb_event_flag_t event, VALUE proc, VALUE self, ID id, VALUE klas klass = RBASIC(klass)->klass; } else if (FL_TEST(klass, FL_SINGLETON)) { - klass = rb_ivar_get(klass, id__attached__); + klass = RCLASS_ATTACHED_OBJECT(klass); } } |