summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-11-17 18:49:39 +0000
committerJim Laskey <jlaskey@mac.com>2006-11-17 18:49:39 +0000
commit73106b5e2afe7c0d3043cae710b35926d64c7a2a (patch)
tree0284f66174fd478df2caa0e4bed9e8aca8274a8a /llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp
parent716f64c30b452d3a5ef54c9e8fddc95e34c2fc89 (diff)
downloadbcm5719-llvm-73106b5e2afe7c0d3043cae710b35926d64c7a2a.tar.gz
bcm5719-llvm-73106b5e2afe7c0d3043cae710b35926d64c7a2a.zip
Assert unhandled case.
llvm-svn: 31828
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp b/llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp
index 5edf051924c..c871cb3b786 100644
--- a/llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud