1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Just call search_method_protect [Bug #16669]

This commit is contained in:
Nobuyoshi Nakada 2020-04-23 10:24:49 +09:00
parent da5bd0047d
commit 74c8aaef7d
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -936,13 +936,7 @@ search_method_protect(VALUE klass, ID id, VALUE *defined_class_ptr)
MJIT_FUNC_EXPORTED const rb_method_entry_t *
rb_method_entry(VALUE klass, ID id)
{
const rb_method_entry_t *me = search_method(klass, id, NULL);
if (me && me->def && me->def->type != VM_METHOD_TYPE_UNDEF) {
return me;
}
else {
return NULL;
}
return search_method_protect(klass, id, NULL);
}
static inline const rb_callable_method_entry_t *