[PrologEpilogInserter] Minor refactoring.

Differential Revision: http://reviews.llvm.org/D12924

llvm-svn: 248084
This commit is contained in:
Maksim Panchenko 2015-09-19 04:42:15 +00:00
parent d5556e34e4
commit 0510cd5161

View File

@ -516,7 +516,7 @@ AdjustStackOffset(MachineFrameInfo *MFI, int FrameIdx,
MaxAlign = std::max(MaxAlign, Align);
// Adjust to alignment boundary.
Offset = (Offset + Align - 1) / Align * Align;
Offset = RoundUpToAlignment(Offset, Align);
if (StackGrowsDown) {
DEBUG(dbgs() << "alloc FI(" << FrameIdx << ") at SP[" << -Offset << "]\n");