Fixed completion of incomplete array types, fixing

an assertion if we attempted to get the size of one.

<rdar://problem/13748253>

llvm-svn: 180763
This commit is contained in:
Sean Callanan 2013-04-30 00:20:10 +00:00
parent 3a8d78a2c3
commit 1c27616226
1 changed files with 2 additions and 0 deletions

View File

@ -85,6 +85,8 @@ GetCompleteQualType (clang::ASTContext *ast, clang::QualType qual_type, bool all
switch (type_class)
{
case clang::Type::ConstantArray:
case clang::Type::IncompleteArray:
case clang::Type::VariableArray:
{
const clang::ArrayType *array_type = dyn_cast<clang::ArrayType>(qual_type.getTypePtr());