diff options
author | Aaron Patterson <tenderlove@ruby-lang.org> | 2022-10-12 14:37:02 -0700 |
---|---|---|
committer | Aaron Patterson <tenderlove@ruby-lang.org> | 2022-10-13 13:11:01 -0700 |
commit | e5058b58c22e19d559b1122d94af5af3931aa416 (patch) | |
tree | 6bfd4dba20d8905436ee0c8c9e1992cb10117d83 /lib | |
parent | 1b0c9d0e3d6dc3630072dc16c143e0d79886b7a0 (diff) | |
download | ruby-e5058b58c22e19d559b1122d94af5af3931aa416.tar.gz |
Only expose Ruby Shape API if VM_CHECK_MODE is enabled
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mjit/compiler.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mjit/compiler.rb b/lib/mjit/compiler.rb index 0d2910bf4e..55fcee6b87 100644 --- a/lib/mjit/compiler.rb +++ b/lib/mjit/compiler.rb @@ -356,7 +356,7 @@ module RubyVM::MJIT source_shape_id = if dest_shape_id == C.INVALID_SHAPE_ID dest_shape_id else - RubyVM::Shape.find_by_id(dest_shape_id).parent_id + C.rb_shape_get_shape_by_id(dest_shape_id).parent_id end src = +'' |