fix the stack alignment

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30766 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2006-10-06 14:29:47 +00:00
parent 4a408d46d4
commit 1b5076887e

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