mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-13 10:32:06 +00:00
Fix an off-by-one error that Nate's eagle eyes caught
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25231 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c6d48d36a3
commit
ba625726a1
@ -380,7 +380,7 @@ void PPCRegisterInfo::emitEpilogue(MachineFunction &MF,
|
||||
|
||||
// The loaded (or persistent) stack pointer value is offseted by the 'stwu'
|
||||
// on entry to the function. Add this offset back now.
|
||||
if (NumBytes <= 32768) {
|
||||
if (NumBytes < 32768) {
|
||||
BuildMI(MBB, MBBI, PPC::ADDI, 2, PPC::R1)
|
||||
.addReg(PPC::R1).addSImm(NumBytes);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user