Skip to content

Commit a224ce8

Browse files
authored
Remove unnecessary checks for empty kw splat
These two checks are surrounded by an if that ensures the call site is not a kw splat call site.
1 parent 4b36a59 commit a224ce8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

vm_insnhelper.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2417,7 +2417,6 @@ vm_callee_setup_arg(rb_execution_context_t *ec, struct rb_calling_info *calling,
24172417
if (LIKELY(rb_simple_iseq_p(iseq))) {
24182418
rb_control_frame_t *cfp = ec->cfp;
24192419
CALLER_SETUP_ARG(cfp, calling, ci);
2420-
CALLER_REMOVE_EMPTY_KW_SPLAT(cfp, calling, ci);
24212420

24222421
if (calling->argc != iseq->body->param.lead_num) {
24232422
argument_arity_error(ec, iseq, calling->argc, iseq->body->param.lead_num, iseq->body->param.lead_num);
@@ -2431,7 +2430,6 @@ vm_callee_setup_arg(rb_execution_context_t *ec, struct rb_calling_info *calling,
24312430
else if (rb_iseq_only_optparam_p(iseq)) {
24322431
rb_control_frame_t *cfp = ec->cfp;
24332432
CALLER_SETUP_ARG(cfp, calling, ci);
2434-
CALLER_REMOVE_EMPTY_KW_SPLAT(cfp, calling, ci);
24352433

24362434
const int lead_num = iseq->body->param.lead_num;
24372435
const int opt_num = iseq->body->param.opt_num;

0 commit comments

Comments
 (0)