From e1b03b0c2b2449a7794f4701bab8b2382eb15116 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Tue, 1 Jun 2021 00:15:51 -0700 Subject: Enable VM_ASSERT in --jit CIs (#4543) --- vm_method.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm_method.c') diff --git a/vm_method.c b/vm_method.c index 740279cdc9..ea7d2d4daf 100644 --- a/vm_method.c +++ b/vm_method.c @@ -1490,7 +1490,7 @@ static void scope_visibility_check(void) { /* Check for public/protected/private/module_function called inside a method */ - rb_control_frame_t *cfp = rb_current_execution_context()->cfp+1; + rb_control_frame_t *cfp = GET_EC()->cfp+1; if (cfp && cfp->iseq && cfp->iseq->body->type == ISEQ_TYPE_METHOD) { rb_warn("calling %s without arguments inside a method may not have the intended effect", rb_id2name(rb_frame_this_func())); -- cgit v1.2.3