mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-14 15:28:20 +00:00
Arg, fix bugs in previous checkin...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5322 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -186,7 +186,7 @@ void PEI::calculateFrameObjectOffsets(MachineFunction &Fn) {
|
|||||||
// Loop over all of the stack objects, assigning sequential addresses...
|
// Loop over all of the stack objects, assigning sequential addresses...
|
||||||
MachineFrameInfo *FFI = Fn.getFrameInfo();
|
MachineFrameInfo *FFI = Fn.getFrameInfo();
|
||||||
|
|
||||||
unsigned StackAlign = TFI.getStackAlignment();
|
unsigned StackAlignment = TFI.getStackAlignment();
|
||||||
|
|
||||||
// Start at the beginning of the local area...
|
// Start at the beginning of the local area...
|
||||||
int Offset = TFI.getOffsetOfLocalArea();
|
int Offset = TFI.getOffsetOfLocalArea();
|
||||||
@@ -194,7 +194,7 @@ void PEI::calculateFrameObjectOffsets(MachineFunction &Fn) {
|
|||||||
Offset += FFI->getObjectSize(i); // Allocate Size bytes...
|
Offset += FFI->getObjectSize(i); // Allocate Size bytes...
|
||||||
|
|
||||||
unsigned Align = FFI->getObjectAlignment(i);
|
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!");
|
"alignment boundary than the stack itself!");
|
||||||
Offset = (Offset+Align-1)/Align*Align; // Adjust to Alignment boundary...
|
Offset = (Offset+Align-1)/Align*Align; // Adjust to Alignment boundary...
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user