mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-01 08:28:19 +00:00
Only allow increase of max alignment value
llvm-svn: 50168
This commit is contained in:
parent
47a8e6d7a9
commit
372e69e652
@ -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…
Reference in New Issue
Block a user