mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-16 08:08:01 +00:00
Fixed bug in bad behavior in calculateFrameObjectOffsets,
the solution commited is different from the previous patch to avoid int and unsigned comparison llvm-svn: 51899
This commit is contained in:
parent
cbb64ece8a
commit
dbf310acbc
@ -362,7 +362,8 @@ void PEI::calculateFrameObjectOffsets(MachineFunction &Fn) {
|
||||
FFI->setObjectOffset(i, -Offset); // Set the computed offset
|
||||
}
|
||||
} else {
|
||||
for (unsigned i = MaxCSFrameIndex; i >= MinCSFrameIndex; --i) {
|
||||
int MaxCSFI = MaxCSFrameIndex, MinCSFI = MinCSFrameIndex;
|
||||
for (int i = MaxCSFI; i >= MinCSFI ; --i) {
|
||||
unsigned Align = FFI->getObjectAlignment(i);
|
||||
// If the alignment of this object is greater than that of the stack, then
|
||||
// increase the stack alignment to match.
|
||||
|
Loading…
Reference in New Issue
Block a user