From db406daa60c1cc1585dd8a7227a87d45bbd3cb89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= Date: Mon, 1 Jun 2020 15:56:54 +0900 Subject: [PATCH] vm_yield_setup_args: refactor use macro --- vm_insnhelper.c | 5 +---- 1 file changed, 1 insertion(+), 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); }