diff options
author | Jim Laskey <jlaskey@mac.com> | 2006-11-17 18:49:39 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2006-11-17 18:49:39 +0000 |
commit | d6fa8c166ace05779ebefe511c615223b12fe7db (patch) | |
tree | 3efb40b2a1535f51bffda080268f6fa45a19b6d7 /lib/Target/PowerPC | |
parent | ba890249ce1b12e7648980ef45bfcbd9a1b18597 (diff) | |
download | external_llvm-d6fa8c166ace05779ebefe511c615223b12fe7db.zip external_llvm-d6fa8c166ace05779ebefe511c615223b12fe7db.tar.gz external_llvm-d6fa8c166ace05779ebefe511c615223b12fe7db.tar.bz2 |
Assert unhandled case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31828 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC')
-rw-r--r-- | lib/Target/PowerPC/PPCRegisterInfo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCRegisterInfo.cpp b/lib/Target/PowerPC/PPCRegisterInfo.cpp index 5edf051..c871cb3 100644 --- a/lib/Target/PowerPC/PPCRegisterInfo.cpp +++ b/lib/Target/PowerPC/PPCRegisterInfo.cpp @@ -445,6 +445,8 @@ void PPCRegisterInfo::lowerDynamicAlloc(MachineBasicBlock::iterator II) const { // Get stack alignments. unsigned TargetAlign = MF.getTarget().getFrameInfo()->getStackAlignment(); unsigned MaxAlign = MFI->getMaxAlignment(); + assert(MaxAlign <= TargetAlign && + "Dynamic alloca with large aligns not supported"); // Determine the previous frame's address. If FrameSize can't be // represented as 16 bits or we need special alignment, then we load the |