From: Douglas Gregor Date: Wed, 20 Apr 2011 17:29:44 +0000 (+0000) Subject: Give invalid tag types 8-bit size and alignment, rather than 1-bit X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=22ce41d9fc8509da65858c75bf5b3c4dae2d8c04;p=clang Give invalid tag types 8-bit size and alignment, rather than 1-bit alignment, which causes traps further down the line. Fixes , which contains a test case far too large to commit :( git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129861 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index 524a7563e6..3d74d3a938 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -878,8 +878,8 @@ ASTContext::getTypeInfo(const Type *T) const { const TagType *TT = cast(T); if (TT->getDecl()->isInvalidDecl()) { - Width = 1; - Align = 1; + Width = 8; + Align = 8; break; }