From fc03ba50f1ff6c30f7c654f564b4dffbed0844ef Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Sun, 25 Dec 2022 22:48:35 -0800 Subject: MJIT: Fix JIT code for multiple values in a single case [Bug #19263] --- lib/ruby_vm/mjit/compiler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/ruby_vm/mjit') diff --git a/lib/ruby_vm/mjit/compiler.rb b/lib/ruby_vm/mjit/compiler.rb index 3ef3babf66..a9f2aeda8d 100644 --- a/lib/ruby_vm/mjit/compiler.rb +++ b/lib/ruby_vm/mjit/compiler.rb @@ -536,7 +536,7 @@ class RubyVM::MJIT::Compiler # :nodoc: all when /\A\s+JUMP\((?[^)]+)\);\s+\z/ dest = Regexp.last_match[:dest] if insn.name == :opt_case_dispatch # special case... TODO: use another macro to avoid checking name - hash_offsets = C.rb_hash_values(operands[0]) + hash_offsets = C.rb_hash_values(operands[0]).uniq else_offset = cast_offset(operands[1]) base_pos = pos + insn_len -- cgit v1.2.3