Arg, fix bugs in previous checkin...

llvm-svn: 5322
This commit is contained in:
Chris Lattner 2003-01-16 02:24:20 +00:00
parent 910ee768d0
commit c52c791806
1 changed files with 2 additions and 2 deletions

View File

@ -186,7 +186,7 @@ void PEI::calculateFrameObjectOffsets(MachineFunction &Fn) {
// Loop over all of the stack objects, assigning sequential addresses...
MachineFrameInfo *FFI = Fn.getFrameInfo();
unsigned StackAlign = TFI.getStackAlignment();
unsigned StackAlignment = TFI.getStackAlignment();
// Start at the beginning of the local area...
int Offset = TFI.getOffsetOfLocalArea();
@ -194,7 +194,7 @@ void PEI::calculateFrameObjectOffsets(MachineFunction &Fn) {
Offset += FFI->getObjectSize(i); // Allocate Size bytes...
unsigned Align = FFI->getObjectAlignment(i);
assert(Align < StackAlign && "Cannot align stack object to higher "
assert(Align <= StackAlignment && "Cannot align stack object to higher "
"alignment boundary than the stack itself!");
Offset = (Offset+Align-1)/Align*Align; // Adjust to Alignment boundary...