diff options
-rw-r--r-- | lib/Target/PowerPC/PPCRegisterInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCRegisterInfo.cpp b/lib/Target/PowerPC/PPCRegisterInfo.cpp index 08f51db5af..5526a6e03d 100644 --- a/lib/Target/PowerPC/PPCRegisterInfo.cpp +++ b/lib/Target/PowerPC/PPCRegisterInfo.cpp @@ -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 |