This causes incorrect stack frame allocation when the last object is an array allocated on the stack which would lead
the compiled program to run over its stack. Thanks to Gil Dogon llvm-svn: 67034
This commit is contained in:
parent
ed0f3b021e
commit
aa7db25235
|
|
@ -267,7 +267,7 @@ void MipsRegisterInfo::adjustMipsStackFrame(MachineFunction &MF) const
|
|||
|
||||
if (LastOffsetFI >= 0)
|
||||
StackOffset = MFI->getObjectOffset(LastOffsetFI)+
|
||||
MFI->getObjectAlignment(LastOffsetFI);
|
||||
MFI->getObjectSize(LastOffsetFI);
|
||||
StackOffset = ((StackOffset+StackAlign-1)/StackAlign*StackAlign);
|
||||
|
||||
for (unsigned i = 0, e = CSI.size(); i != e ; ++i) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue