diff --git a/src/mapleall/maple_be/src/cg/aarch64/aarch64_color_ra.cpp b/src/mapleall/maple_be/src/cg/aarch64/aarch64_color_ra.cpp index 3a1b73bc6640120631e5866584eead88fdab255d..e1dc165c6a3389296471e0652bec350153b89371 100644 --- a/src/mapleall/maple_be/src/cg/aarch64/aarch64_color_ra.cpp +++ b/src/mapleall/maple_be/src/cg/aarch64/aarch64_color_ra.cpp @@ -2465,7 +2465,7 @@ void GraphColorRegAllocator::SpillOperandForSpillPre(Insn &insn, const Operand & } if (a64CGFunc->IsImmediateOffsetOutOfRange(*static_cast(spillMem), k64)) { - regno_t pregNO = phyOpnd.GetRegisterNumber(); + regno_t pregNO = R17; spillMem = &a64CGFunc->SplitOffsetWithAddInstruction(*static_cast(spillMem), k64, static_cast(pregNO), false, &insn); } @@ -2500,7 +2500,7 @@ void GraphColorRegAllocator::SpillOperandForSpillPost(Insn &insn, const Operand bool isOutOfRange = false; if (a64CGFunc->IsImmediateOffsetOutOfRange(*static_cast(spillMem), k64)) { - regno_t pregNO = phyOpnd.GetRegisterNumber(); + regno_t pregNO = R17; spillMem = &a64CGFunc->SplitOffsetWithAddInstruction(*static_cast(spillMem), k64, static_cast(pregNO), true, &insn); isOutOfRange = true;