diff options
author | Takashi Kokubun <[email protected]> | 2023-12-21 16:45:37 -0800 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2023-12-21 16:45:37 -0800 |
commit | 18a97affa349b5edbc4829063b752aab1911fa55 (patch) | |
tree | cc6aee0b554622469068d4dfc8281472d4297a26 /lib | |
parent | 68bcca4c2bfa716b965554057b098cefcba00f66 (diff) |
RJIT: Fix a wrong comparison in set_local_type
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ruby_vm/rjit/context.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ruby_vm/rjit/context.rb b/lib/ruby_vm/rjit/context.rb index c34572ecf1..a2a7ecc6dc 100644 --- a/lib/ruby_vm/rjit/context.rb +++ b/lib/ruby_vm/rjit/context.rb @@ -264,9 +264,9 @@ module RubyVM::RJIT # noop in MapToSelf # noop - in MapToLocal[temp_local_idx] - if stack_idx == temp_local_idx - self.temp_types[stack_idx] = self.local_types[temp_local_idx] + in MapToLocal[idx] + if idx == local_idx + self.temp_types[stack_idx] = self.local_types[idx] self.temp_mapping[stack_idx] = MapToStack else # noop |