From 692dfc50888b86084181d520297a49faa4bd0809 Mon Sep 17 00:00:00 2001 From: S-H-GAMELINKS Date: Tue, 14 Sep 2021 09:19:30 +0900 Subject: [PATCH] Refactor vm_yield function --- vm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/vm.c b/vm.c index ba5ad667ed..1a21638978 100644 --- a/vm.c +++ b/vm.c @@ -1396,9 +1396,7 @@ vm_yield_with_cref(rb_execution_context_t *ec, int argc, const VALUE *argv, int static VALUE vm_yield(rb_execution_context_t *ec, int argc, const VALUE *argv, int kw_splat) { - return invoke_block_from_c_bh(ec, check_block_handler(ec), - argc, argv, kw_splat, VM_BLOCK_HANDLER_NONE, - NULL, FALSE, FALSE); + return vm_yield_with_cref(ec, argc, argv, kw_splat, NULL, FALSE); } static VALUE