diff options
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 9974a8a4f8..5e5554cb67 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -3712,8 +3712,7 @@ vm_call_super_method(rb_execution_context_t *ec, rb_control_frame_t *reg_cfp, st RB_DEBUG_COUNTER_INC(ccf_super_method); /* this check is required to distinguish with other functions. */ - const struct rb_callcache *cc = calling->cc; - if (vm_cc_call(cc) != vm_call_super_method) rb_bug("bug"); + VM_ASSERT(vm_cc_call(calling->cc) == vm_call_super_method); return vm_call_method(ec, reg_cfp, calling); } |