summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-02-27 10:04:56 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-02-27 10:04:56 +0000
commit8ae8e2d50bdeb1fca5080420e9eaf08a36ada75e (patch)
tree954d3d95d2c0a04934f14be657fbdbc2a881b882 /llvm/lib/CodeGen
parent96658d018997333feadc5bca031d79bbe5da708f (diff)
downloadbcm5719-llvm-8ae8e2d50bdeb1fca5080420e9eaf08a36ada75e.tar.gz
bcm5719-llvm-8ae8e2d50bdeb1fca5080420e9eaf08a36ada75e.zip
Don't track max alignment during stack object allocations since they can be deleted later. Let PEI compute it.
llvm-svn: 47668
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/PrologEpilogInserter.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/PrologEpilogInserter.cpp b/llvm/lib/CodeGen/PrologEpilogInserter.cpp
index 3cc2aa6f61f..31064558509 100644
--- a/llvm/lib/CodeGen/PrologEpilogInserter.cpp
+++ b/llvm/lib/CodeGen/PrologEpilogInserter.cpp
@@ -475,8 +475,7 @@ void PEI::calculateFrameObjectOffsets(MachineFunction &Fn) {
// Remember the required stack alignment in case targets need it to perform
// dynamic stack alignment.
- assert(FFI->getMaxAlignment() == MaxAlign &&
- "Stack alignment calculation broken!");
+ FFI->setMaxAlignment(MaxAlign);
}
OpenPOWER on IntegriCloud