Skip to content

Commit

Permalink
RJIT: Fix toregexp
Browse files Browse the repository at this point in the history
  • Loading branch information
k0kubun committed Mar 19, 2023
1 parent 9c2792c commit 4a8de3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ruby_vm/rjit/insn_compiler.rb
Expand Up @@ -44,7 +44,7 @@ def compile(jit, ctx, asm, insn)
when :putstring then putstring(jit, ctx, asm)
when :concatstrings then concatstrings(jit, ctx, asm)
when :anytostring then anytostring(jit, ctx, asm)
# toregexp
when :toregexp then toregexp(jit, ctx, asm)
# intern
when :newarray then newarray(jit, ctx, asm)
# newarraykwsplat
Expand Down Expand Up @@ -807,7 +807,7 @@ def toregexp(jit, ctx, asm)
asm.push(C_RET)
asm.push(C_RET) # Alignment

asm.mov(C_ARGS[0], ary)
asm.mov(C_ARGS[0], C_RET)
asm.mov(C_ARGS[1], opt)
asm.call(C.rb_reg_new_ary)

Expand Down

0 comments on commit 4a8de3f

Please sign in to comment.