1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

Only allow increase of max alignment value

llvm-svn: 50168
This commit is contained in:
Anton Korobeynikov 2008-04-23 18:23:50 +00:00
parent 47a8e6d7a9
commit 372e69e652

View File

@ -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);
}