diff options
author | Anders Carlsson <andersca@mac.com> | 2009-09-25 01:23:32 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-09-25 01:23:32 +0000 |
commit | fbbce49c116aa8c8c7c0707cb6048b55f70461a9 (patch) | |
tree | cb956453e5b57f17d6c8661dfa43bd1bf0730ba2 /lib/AST/ASTContext.cpp | |
parent | 80417471b01ab2726cd04773b2ab700ce564073c (diff) |
Handle array fields that contain empty structs.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82744 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r-- | lib/AST/ASTContext.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index 2654a0e735..41e8d3604e 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -2407,11 +2407,11 @@ QualType ASTContext::getBaseElementType(QualType QT) { } } -QualType ASTContext::getBaseElementType(const VariableArrayType *VAT) { - QualType ElemTy = VAT->getElementType(); +QualType ASTContext::getBaseElementType(const ArrayType *AT) { + QualType ElemTy = AT->getElementType(); - if (const VariableArrayType *VAT = getAsVariableArrayType(ElemTy)) - return getBaseElementType(VAT); + if (const ArrayType *AT = getAsArrayType(ElemTy)) + return getBaseElementType(AT); return ElemTy; } |