fix the stack alignment

llvm-svn: 30766
This commit is contained in:
Rafael Espindola 2006-10-06 14:29:47 +00:00
parent 5fe7909e18
commit 6024ea8383
1 changed files with 3 additions and 0 deletions

View File

@ -139,6 +139,9 @@ void ARMRegisterInfo::emitPrologue(MachineFunction &MF) const {
NumBytes += MFI->getMaxCallFrameSize();
}
// Align to 8 bytes
NumBytes = ((NumBytes + 7) / 8) * 8;
MFI->setStackSize(NumBytes);
//sub sp, sp, #NumBytes