mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-19 23:29:20 +00:00
Fix ppc64 epilog bug.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31771 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8e28b5c426
commit
5e797a5b1c
@ -767,7 +767,7 @@ void PPCRegisterInfo::emitEpilogue(MachineFunction &MF,
|
||||
|
||||
// Get the number of bytes allocated from the FrameInfo.
|
||||
unsigned NumBytes = MFI->getStackSize();
|
||||
unsigned GPRSize = 4;
|
||||
unsigned GPRSize = Subtarget.isPPC64() ? 8 : 4;
|
||||
|
||||
if (NumBytes != 0) {
|
||||
// If this function has a frame pointer, load the saved stack pointer from
|
||||
|
Loading…
x
Reference in New Issue
Block a user