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

check imemo_type

check imemo_type to debug
http://ci.rvm.jp/results/trunk-vm-asserts@silicon-docker/2744755
This commit is contained in:
Koichi Sasada 2020-02-27 10:47:23 +09:00
parent 1d81baf3c1
commit 18674aef0d

View file

@ -117,11 +117,18 @@ callable_class_p(VALUE klass)
static int static int
callable_method_entry_p(const rb_callable_method_entry_t *cme) callable_method_entry_p(const rb_callable_method_entry_t *cme)
{ {
if (cme == NULL || callable_class_p(cme->defined_class)) { if (cme == NULL) {
return TRUE; return TRUE;
} }
else { else {
return FALSE; VM_ASSERT(IMEMO_TYPE_P((VALUE)cme, imemo_ment));
if (callable_class_p(cme->defined_class)) {
return TRUE;
}
else {
return FALSE;
}
} }
} }