summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index 5e4ad3dc54..072f446f95 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -2032,7 +2032,9 @@ vm_invoke_block(rb_thread_t *th, rb_control_frame_t *reg_cfp, rb_call_info_t *ci
}
iseq = block->iseq;
- vm_caller_setup_args(th, GET_CFP(), ci);
+ if (UNLIKELY(ci->flag & VM_CALL_ARGS_SPLAT)) {
+ vm_caller_setup_args(th, GET_CFP(), ci);
+ }
if (BUILTIN_TYPE(iseq) != T_NODE) {
int opt_pc;