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:
parent
57477675ef
commit
7f97189b53
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue