diff options
author | Koichi Sasada <ko1@atdot.net> | 2021-11-16 17:52:20 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2021-11-17 22:21:42 +0900 |
commit | 2d1a7bed03540257b32fd87ce1c78d2f5ad3d075 (patch) | |
tree | 7c45444938ecaef35cf2f623e0cb1dc369b6d931 /vm_insnhelper.c | |
parent | a982a1f1e705f74ec5d802ce6439d8e250619920 (diff) |
a variable is not needed.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5122
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); } |