Skip to content

Commit

Permalink
RJIT: Fix a wrong comparison in set_local_type
Browse files Browse the repository at this point in the history
  • Loading branch information
k0kubun committed Dec 22, 2023
1 parent 68bcca4 commit 18a97af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ruby_vm/rjit/context.rb
Expand Up @@ -264,9 +264,9 @@ def set_local_type(local_idx, local_type)
# 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
Expand Down

0 comments on commit 18a97af

Please sign in to comment.