aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-04-03 21:39:57 +0000
committerChris Lattner <sabre@nondot.org>2006-04-03 21:39:57 +0000
commit4672f71ac4d056aa22d6b09838a3eb22a2e384e7 (patch)
treee9c2870f3ec08e84d1d6104b364b08bd9f009409 /lib/CodeGen
parent7dca8e2d732bdbf72034def4d6b9d3d6b99d4ba5 (diff)
downloadexternal_llvm-4672f71ac4d056aa22d6b09838a3eb22a2e384e7.zip
external_llvm-4672f71ac4d056aa22d6b09838a3eb22a2e384e7.tar.gz
external_llvm-4672f71ac4d056aa22d6b09838a3eb22a2e384e7.tar.bz2
The stack alignment is now computed dynamically, just verify it is correct.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27380 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/PrologEpilogInserter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/PrologEpilogInserter.cpp b/lib/CodeGen/PrologEpilogInserter.cpp
index b3bf88d..aabf78b 100644
--- a/lib/CodeGen/PrologEpilogInserter.cpp
+++ b/lib/CodeGen/PrologEpilogInserter.cpp
@@ -321,7 +321,8 @@ void PEI::calculateFrameObjectOffsets(MachineFunction &Fn) {
// Remember the required stack alignment in case targets need it to perform
// dynamic stack alignment.
- FFI->setMaxAlignment(MaxAlign);
+ assert(FFI->getMaxAlignment() == MaxAlign &&
+ "Stack alignment calculation broken!");
}