summaryrefslogtreecommitdiff
path: root/vm_args.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_args.c')
-rw-r--r--vm_args.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_args.c b/vm_args.c
index 446ad482c4..9e6fb9b990 100644
--- a/vm_args.c
+++ b/vm_args.c
@@ -682,7 +682,7 @@ raise_argument_error(rb_thread_t *th, const rb_iseq_t *iseq, const VALUE exc)
at = rb_vm_backtrace_object();
}
- rb_iv_set(exc, "bt_locations", at);
+ rb_ivar_set(exc, idBt_locations, at);
rb_funcall(exc, rb_intern("set_backtrace"), 1, at);
rb_exc_raise(exc);
}