mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-29 05:01:11 +00:00
[PrologEpilogInserter] Minor refactoring.
Differential Revision: http://reviews.llvm.org/D12924 llvm-svn: 248084
This commit is contained in:
parent
d5556e34e4
commit
0510cd5161
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user