summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2022-10-14 16:11:37 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2022-10-14 17:14:41 -0700
commit1acc1a5c6d5d01b2822d7aa4356208095481724b (patch)
treee4afb10bc27499c493e535eb9425e8b22f8f363a /variable.c
parent53e0e5e8df8648e23278e4811e634671de9e1af1 (diff)
YJIT doesn't need rb_obj_ensure_iv_index_mapping
We should make this function static and remove it from YJIT bindings.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6553
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/variable.c b/variable.c
index 1f532f2154..4b8c87bd1f 100644
--- a/variable.c
+++ b/variable.c
@@ -1449,7 +1449,7 @@ rb_init_iv_list(VALUE obj)
// @note May raise when there are too many instance variables.
// @note YJIT uses this function at compile time to simplify the work needed to
// access the variable at runtime.
-uint32_t
+static uint32_t
rb_obj_ensure_iv_index_mapping(VALUE obj, ID id)
{
RUBY_ASSERT(RB_TYPE_P(obj, T_OBJECT));