RJIT: Fix a wrong comparison in set_local_type

This commit is contained in:
Takashi Kokubun 2023-12-21 16:45:37 -08:00
parent 68bcca4c2b
commit 18a97affa3

View File

@ -264,9 +264,9 @@ module RubyVM::RJIT
# noop # noop
in MapToSelf in MapToSelf
# noop # noop
in MapToLocal[temp_local_idx] in MapToLocal[idx]
if stack_idx == temp_local_idx if idx == local_idx
self.temp_types[stack_idx] = self.local_types[temp_local_idx] self.temp_types[stack_idx] = self.local_types[idx]
self.temp_mapping[stack_idx] = MapToStack self.temp_mapping[stack_idx] = MapToStack
else else
# noop # noop