From e8e1f72d8fae3d010a1a5bec90c897aee9f08ce0 Mon Sep 17 00:00:00 2001 From: ko1 Date: Wed, 20 Mar 2019 20:37:03 +0000 Subject: [PATCH] remove redundant check. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_insnhelper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 51340eee20..78c303fc08 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -1787,7 +1787,7 @@ vm_callee_setup_arg(rb_execution_context_t *ec, struct rb_calling_info *calling, !(METHOD_ENTRY_VISI(cc->me) == METHOD_VISI_PROTECTED))); return 0; } - else if (rb_iseq_only_optparam_p(iseq) && !(ci->flag & VM_CALL_KW_SPLAT)) { + else if (rb_iseq_only_optparam_p(iseq)) { rb_control_frame_t *cfp = ec->cfp; CALLER_SETUP_ARG(cfp, calling, ci); /* splat arg */