diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-02-27 10:04:56 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-02-27 10:04:56 +0000 |
commit | be680dcea6858c438c6615326ae1c098ff448ae1 (patch) | |
tree | dede24ec0abc6c892079d926ea556dcca6adf5e5 /lib/CodeGen/PrologEpilogInserter.cpp | |
parent | e90a615f37aaee2ad9259c0ef21586d5e4142147 (diff) | |
download | external_llvm-be680dcea6858c438c6615326ae1c098ff448ae1.zip external_llvm-be680dcea6858c438c6615326ae1c098ff448ae1.tar.gz external_llvm-be680dcea6858c438c6615326ae1c098ff448ae1.tar.bz2 |
Don't track max alignment during stack object allocations since they can be deleted later. Let PEI compute it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47668 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PrologEpilogInserter.cpp')
-rw-r--r-- | lib/CodeGen/PrologEpilogInserter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/PrologEpilogInserter.cpp b/lib/CodeGen/PrologEpilogInserter.cpp index 3cc2aa6..3106455 100644 --- a/lib/CodeGen/PrologEpilogInserter.cpp +++ b/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); } |