[Lldb-commits] [lldb] r180763 - Fixed completion of incomplete array types, fixing

Sean Callanan scallanan at apple.com
Mon Apr 29 17:20:10 PDT 2013


Author: spyffe
Date: Mon Apr 29 19:20:10 2013
New Revision: 180763

URL: http://llvm.org/viewvc/llvm-project?rev=180763&view=rev
Log:
Fixed completion of incomplete array types, fixing
an assertion if we attempted to get the size of one.

<rdar://problem/13748253>

Modified:
    lldb/trunk/source/Symbol/ClangASTContext.cpp

Modified: lldb/trunk/source/Symbol/ClangASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/ClangASTContext.cpp?rev=180763&r1=180762&r2=180763&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/ClangASTContext.cpp (original)
+++ lldb/trunk/source/Symbol/ClangASTContext.cpp Mon Apr 29 19:20:10 2013
@@ -85,6 +85,8 @@ GetCompleteQualType (clang::ASTContext *
     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());
             





More information about the lldb-commits mailing list