diff options
| author | Douglas Gregor <dgregor@apple.com> | 2011-04-20 17:29:44 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2011-04-20 17:29:44 +0000 |
| commit | 7f97189b53074931229019dd0a1d19eba9ecdd96 (patch) | |
| tree | 66d47b2501104727ed48f604e78d28cb7110855a /clang/lib/AST/ASTContext.cpp | |
| parent | 57477675efa64deb6e173467f81c7424c14a9ca3 (diff) | |
| download | bcm5719-llvm-7f97189b53074931229019dd0a1d19eba9ecdd96.tar.gz bcm5719-llvm-7f97189b53074931229019dd0a1d19eba9ecdd96.zip | |
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
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
| -rw-r--r-- | clang/lib/AST/ASTContext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index 524a7563e64..3d74d3a9380 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -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; } |

