diff options
author | Takashi Kokubun <[email protected]> | 2023-12-21 15:45:10 -0800 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2023-12-21 15:48:37 -0800 |
commit | 68bcca4c2bfa716b965554057b098cefcba00f66 (patch) | |
tree | 5e142d07fa7877f3695f749b752c98e84e105dc3 /lib/ruby_vm/rjit/context.rb | |
parent | ffa5f16273f46c97bfca56e4549b0b38b9322d63 (diff) |
RJIT: Fix unwanted shadowing in set_local_type
local_idx should not be overwritten.
Diffstat (limited to 'lib/ruby_vm/rjit/context.rb')
-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 66da478c7f..c34572ecf1 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[local_idx] - if stack_idx == local_idx - self.temp_types[stack_idx] = self.local_types[local_idx]; + in MapToLocal[temp_local_idx] + if stack_idx == temp_local_idx + self.temp_types[stack_idx] = self.local_types[temp_local_idx] self.temp_mapping[stack_idx] = MapToStack else # noop |