diff options
author | Dale Johannesen <dalej@apple.com> | 2010-07-30 21:09:48 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2010-07-30 21:09:48 +0000 |
commit | 38cb1381b5ec8c75242650491c2b8e7e8a302665 (patch) | |
tree | 0b12f346c06c5c3b6d958262557420973155fdaf /lib/Target/PowerPC | |
parent | e16829b401409b398c9de9847c1d12eb931f7d63 (diff) | |
download | external_llvm-38cb1381b5ec8c75242650491c2b8e7e8a302665.zip external_llvm-38cb1381b5ec8c75242650491c2b8e7e8a302665.tar.gz external_llvm-38cb1381b5ec8c75242650491c2b8e7e8a302665.tar.bz2 |
PPC doesn't supported VLA with large alignment. This was
formerly rejected by the FE, so asserted in the BE; now the FE only
warns, so we treat it as a legitimate fatal error in PPC BE.
This means the test for the feature won't pass, so it's xfail'd.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109892 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC')
-rw-r--r-- | lib/Target/PowerPC/PPCRegisterInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/PowerPC/PPCRegisterInfo.cpp b/lib/Target/PowerPC/PPCRegisterInfo.cpp index cc69fb5..113c9fd 100644 --- a/lib/Target/PowerPC/PPCRegisterInfo.cpp +++ b/lib/Target/PowerPC/PPCRegisterInfo.cpp @@ -449,8 +449,8 @@ void PPCRegisterInfo::lowerDynamicAlloc(MachineBasicBlock::iterator II, // Get stack alignments. unsigned TargetAlign = MF.getTarget().getFrameInfo()->getStackAlignment(); unsigned MaxAlign = MFI->getMaxAlignment(); - assert(MaxAlign <= TargetAlign && - "Dynamic alloca with large aligns not supported"); + if (MaxAlign > TargetAlign) + report_fatal_error("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 |