Give invalid tag types 8-bit size and alignment, rather than 1-bit

alignment, which causes traps further down the line. Fixes
<rdar://problem/9109755>, which contains a test case far too large to
commit :(

llvm-svn: 129861
This commit is contained in:
Douglas Gregor 2011-04-20 17:29:44 +00:00
parent 57477675ef
commit 7f97189b53
1 changed files with 2 additions and 2 deletions

View File

@ -878,8 +878,8 @@ ASTContext::getTypeInfo(const Type *T) const {
const TagType *TT = cast<TagType>(T);
if (TT->getDecl()->isInvalidDecl()) {
Width = 1;
Align = 1;
Width = 8;
Align = 8;
break;
}