summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2019-10-25 17:58:54 +0900
committerKoichi Sasada <ko1@atdot.net>2019-10-25 17:58:54 +0900
commit88135845f10f4b8ea3b67584a2c899ad365fd6bb (patch)
tree632bcd443a7f902cd067b83a4994cc8402cccbe2 /vm_core.h
parentf3f1d89d469e3cc18f868a17fc0362c34318cedc (diff)
enable assertion for debug.
http://ci.rvm.jp/results/trunk-vm-asserts@silicon-docker/2340856
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/vm_core.h b/vm_core.h
index 53d4217847..fabe8bbc10 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -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);