ruby-changes:69776
From: Koichi <ko1@a...>
Date: Wed, 17 Nov 2021 22:22:00 +0900 (JST)
Subject: [ruby-changes:69776] 2d1a7bed03 (master): a variable is not needed.
https://git.ruby-lang.org/ruby.git/commit/?id=2d1a7bed03 From 2d1a7bed03540257b32fd87ce1c78d2f5ad3d075 Mon Sep 17 00:00:00 2001 From: Koichi Sasada <ko1@a...> Date: Tue, 16 Nov 2021 17:52:20 +0900 Subject: 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 9974a8a4f8e..5e5554cb675 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 https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L3712 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); } -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/