summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-06-01 15:56:54 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-06-09 09:52:46 +0900
commitdb406daa60c1cc1585dd8a7227a87d45bbd3cb89 (patch)
tree2aa0b199ebbb2a4c5a0e0fa74b3bc5734eacb843 /vm_insnhelper.c
parent367263c3dd7df3c412e29cefb55561d10715a96a (diff)
vm_yield_setup_args: refactor use macro
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3179
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index 3024a2c381..93b97f5e9e 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -3468,10 +3468,7 @@ vm_yield_setup_args(rb_execution_context_t *ec, const rb_iseq_t *iseq, const int
calling->block_handler = block_handler;
calling->kw_splat = kw_splat;
calling->recv = Qundef;
- struct rb_callinfo dummy_ci = {
- .flags = T_IMEMO | (imemo_callinfo << FL_USHIFT),
- .flag = (VALUE)(kw_splat ? VM_CALL_KW_SPLAT : 0),
- };
+ struct rb_callinfo dummy_ci = VM_CI_ON_STACK(0, (kw_splat ? VM_CALL_KW_SPLAT : 0), 0, 0);
return vm_callee_setup_block_arg(ec, calling, &dummy_ci, iseq, argv, arg_setup_type);
}