summaryrefslogtreecommitdiff
path: root/vm_method.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2021-06-01 00:15:51 -0700
committerGitHub <noreply@github.com>2021-06-01 00:15:51 -0700
commite1b03b0c2b2449a7794f4701bab8b2382eb15116 (patch)
tree2fc8c9db992a16e110357833baa2afb8ae286e35 /vm_method.c
parent0d32a18f5b8cb07ef766ac3ae6de6d41c95af43f (diff)
downloadruby-e1b03b0c2b2449a7794f4701bab8b2382eb15116.tar.gz
Enable VM_ASSERT in --jit CIs (#4543)
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c2
1 files changed, 1 insertions, 1 deletions
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()));