1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

fix the stack alignment

llvm-svn: 30766
This commit is contained in:
Rafael Espindola 2006-10-06 14:29:47 +00:00
parent f679bdf121
commit f35563ff66

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