diff options
author | Chris Lattner <sabre@nondot.org> | 2003-01-16 02:24:20 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-01-16 02:24:20 +0000 |
commit | f85249ca7336cda5bd491c161cb163847774e868 (patch) | |
tree | bd59c8c2e83f0715fb98cb81aaf40e66c8f4a9cb /lib/CodeGen/PrologEpilogInserter.cpp | |
parent | 78d6db5627bdf41ab3ffd96133821647dbc60d53 (diff) |
Arg, fix bugs in previous checkin...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5322 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PrologEpilogInserter.cpp')
-rw-r--r-- | lib/CodeGen/PrologEpilogInserter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/PrologEpilogInserter.cpp b/lib/CodeGen/PrologEpilogInserter.cpp index b5715da242..8fd2375a1f 100644 --- a/lib/CodeGen/PrologEpilogInserter.cpp +++ b/lib/CodeGen/PrologEpilogInserter.cpp @@ -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... |