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

enable assertion for debug.

http://ci.rvm.jp/results/trunk-vm-asserts@silicon-docker/2340856
This commit is contained in:
Koichi Sasada 2019-10-25 17:58:54 +09:00
parent f3f1d89d46
commit 88135845f1

View file

@ -491,7 +491,8 @@ rb_iseq_check(const rb_iseq_t *iseq)
static inline const rb_iseq_t *
def_iseq_ptr(rb_method_definition_t *def)
{
#if VM_CHECK_MODE > 0
//TODO: re-visit. to check the bug, enable this assertion.
#if 1 || VM_CHECK_MODE > 0
if (def->type != VM_METHOD_TYPE_ISEQ) rb_bug("def_iseq_ptr: not iseq (%d)", def->type);
#endif
return rb_iseq_check(def->body.iseq.iseqptr);