mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-12 18:33:22 +00:00
Only allow increase of max alignment value
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50168 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d52bdaff0c
commit
dc28bd43d3
@ -417,7 +417,8 @@ X86RegisterInfo::processFunctionBeforeCalleeSavedScan(MachineFunction &MF,
|
||||
|
||||
// Calculate and set max stack object alignment early, so we can decide
|
||||
// whether we will need stack realignment (and thus FP).
|
||||
unsigned MaxAlign = calculateMaxStackAlignment(FFI);
|
||||
unsigned MaxAlign = std::max(FFI->getMaxAlignment(),
|
||||
calculateMaxStackAlignment(FFI));
|
||||
|
||||
FFI->setMaxAlignment(MaxAlign);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user