From 4601b86ad0e285085b51b727048c44cf7582f097 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 3 Apr 2006 21:39:57 +0000 Subject: [PATCH] The stack alignment is now computed dynamically, just verify it is correct. llvm-svn: 27380 --- lib/CodeGen/PrologEpilogInserter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/CodeGen/PrologEpilogInserter.cpp b/lib/CodeGen/PrologEpilogInserter.cpp index b3bf88d6893..aabf78bd338 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!"); }