diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2021-06-01 00:15:51 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-01 00:15:51 -0700 |
commit | e1b03b0c2b2449a7794f4701bab8b2382eb15116 (patch) | |
tree | 2fc8c9db992a16e110357833baa2afb8ae286e35 /vm_method.c | |
parent | 0d32a18f5b8cb07ef766ac3ae6de6d41c95af43f (diff) |
Enable VM_ASSERT in --jit CIs (#4543)
Notes
Notes:
Merged-By: k0kubun <takashikkbn@gmail.com>
Diffstat (limited to 'vm_method.c')
-rw-r--r-- | vm_method.c | 2 |
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())); |