summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-01-16 02:24:20 +0000
committerChris Lattner <sabre@nondot.org>2003-01-16 02:24:20 +0000
commitc52c79180636bf8444be1e6e5b13f10bc6b4704a (patch)
treed1499ad3e67be3008c100811e6fedb4f958887ad /llvm/lib/CodeGen
parent910ee768d0ad3b9ee5df46c46840da7bd963b4ca (diff)
downloadbcm5719-llvm-c52c79180636bf8444be1e6e5b13f10bc6b4704a.tar.gz
bcm5719-llvm-c52c79180636bf8444be1e6e5b13f10bc6b4704a.zip
Arg, fix bugs in previous checkin...
llvm-svn: 5322
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/PrologEpilogInserter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/PrologEpilogInserter.cpp b/llvm/lib/CodeGen/PrologEpilogInserter.cpp
index b5715da242f..8fd2375a1fa 100644
--- a/llvm/lib/CodeGen/PrologEpilogInserter.cpp
+++ b/llvm/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...
OpenPOWER on IntegriCloud