aboutsummaryrefslogtreecommitdiffstats
path: root/compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index b3969ff4c4..6894ee0084 100644
--- a/compile.c
+++ b/compile.c
@@ -7604,7 +7604,7 @@ caller_location(VALUE *path, VALUE *realpath)
{
const rb_thread_t *const th = GET_THREAD();
const rb_control_frame_t *const cfp =
- rb_vm_get_ruby_level_next_cfp(th, th->ec.cfp);
+ rb_vm_get_ruby_level_next_cfp(th, th->ec->cfp);
if (cfp) {
int line = rb_vm_get_sourceline(cfp);