Fix ppc64 epilog bug.

llvm-svn: 31771
This commit is contained in:
Chris Lattner 2006-11-15 23:35:30 +00:00
parent 5771156be0
commit b4e911d15a
1 changed files with 1 additions and 1 deletions

View File

@ -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