From 1c276162268bcdfc00fc3646648b2522b714826f Mon Sep 17 00:00:00 2001 From: Sean Callanan Date: Tue, 30 Apr 2013 00:20:10 +0000 Subject: [PATCH] Fixed completion of incomplete array types, fixing an assertion if we attempted to get the size of one. llvm-svn: 180763 --- lldb/source/Symbol/ClangASTContext.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lldb/source/Symbol/ClangASTContext.cpp b/lldb/source/Symbol/ClangASTContext.cpp index 4e50793f39f4..fe888d559731 100644 --- a/lldb/source/Symbol/ClangASTContext.cpp +++ b/lldb/source/Symbol/ClangASTContext.cpp @@ -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(qual_type.getTypePtr());