diff options
-rw-r--r-- | yjit/src/backend/arm64/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/yjit/src/backend/arm64/mod.rs b/yjit/src/backend/arm64/mod.rs index 4f07bf8062..3e926c9387 100644 --- a/yjit/src/backend/arm64/mod.rs +++ b/yjit/src/backend/arm64/mod.rs @@ -69,7 +69,8 @@ impl From<&Opnd> for A64Opnd { impl Assembler { // A special scratch register for intermediate processing. - const SCRATCH0: A64Opnd = A64Opnd::Reg(X22_REG); + // This register is caller-saved (so we don't have to save it before using it) + const SCRATCH0: A64Opnd = A64Opnd::Reg(X15_REG); /// Get the list of registers from which we will allocate on this platform /// These are caller-saved registers |