diff options
Diffstat (limited to 'vm_method.c')
-rw-r--r-- | vm_method.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_method.c b/vm_method.c index 19852b0951..45285e0349 100644 --- a/vm_method.c +++ b/vm_method.c @@ -153,7 +153,7 @@ clear_method_cache_by_id_in_class(VALUE klass, ID mid) VM_ASSERT(RB_TYPE_P(klass, T_CLASS) || RB_TYPE_P(klass, T_ICLASS)); if (rb_objspace_garbage_object_p(klass)) return; - if (LIKELY(RCLASS_EXT(klass)->subclasses == NULL)) { + if (LIKELY(RCLASS_SUBCLASSES(klass) == NULL)) { // no subclasses // check only current class |