From 2d1a7bed03540257b32fd87ce1c78d2f5ad3d075 Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Tue, 16 Nov 2021 17:52:20 +0900 Subject: [PATCH] a variable is not needed. --- vm_insnhelper.c | 3 +-- 1 file changed, 1 insertion(+), 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); }