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:
parent
f3f1d89d46
commit
88135845f1
1 changed files with 2 additions and 1 deletions
|
@ -491,7 +491,8 @@ rb_iseq_check(const rb_iseq_t *iseq)
|
||||||
static inline const rb_iseq_t *
|
static inline const rb_iseq_t *
|
||||||
def_iseq_ptr(rb_method_definition_t *def)
|
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);
|
if (def->type != VM_METHOD_TYPE_ISEQ) rb_bug("def_iseq_ptr: not iseq (%d)", def->type);
|
||||||
#endif
|
#endif
|
||||||
return rb_iseq_check(def->body.iseq.iseqptr);
|
return rb_iseq_check(def->body.iseq.iseqptr);
|
||||||
|
|
Loading…
Add table
Reference in a new issue