diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-04-10 16:35:48 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-10 16:35:48 -0700 |
commit | 1ff14a855ab2389017a0de958702644233dbeb9f (patch) | |
tree | 223bf4002a63e16d7a3843c973b7cbf985170d30 /yjit | |
parent | 4af9bd52cbb8cff7d149a8565012ab1153a4b5b1 (diff) | |
download | ruby-1ff14a855ab2389017a0de958702644233dbeb9f.tar.gz |
YJIT: Avoid using a register for unspecified_bits (#7685)
Fix [Bug #19586]
Diffstat (limited to 'yjit')
-rw-r--r-- | yjit/src/codegen.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/yjit/src/codegen.rs b/yjit/src/codegen.rs index e54b2e2752..e5e6cca563 100644 --- a/yjit/src/codegen.rs +++ b/yjit/src/codegen.rs @@ -6172,6 +6172,7 @@ fn gen_send_iseq( // pushed onto the stack that represents the parameters that weren't // explicitly given a value and have a non-constant default. let unspec_opnd = VALUE::fixnum_from_usize(unspecified_bits).as_u64(); + asm.spill_temps(ctx); // avoid using a register for unspecified_bits asm.mov(ctx.stack_opnd(-1), unspec_opnd.into()); } |