[Lldb-commits] [lldb] r234771 - Be sure to complete base classes when importing them.

Greg Clayton gclayton at apple.com
Mon Apr 13 11:32:55 PDT 2015


Author: gclayton
Date: Mon Apr 13 13:32:54 2015
New Revision: 234771

URL: http://llvm.org/viewvc/llvm-project?rev=234771&view=rev
Log:
Be sure to complete base classes when importing them.


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

Modified: lldb/trunk/source/Symbol/ClangASTImporter.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/ClangASTImporter.cpp?rev=234771&r1=234770&r2=234771&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/ClangASTImporter.cpp (original)
+++ lldb/trunk/source/Symbol/ClangASTImporter.cpp Mon Apr 13 13:32:54 2015
@@ -274,7 +274,10 @@ ClangASTImporter::CompleteObjCInterfaceD
     
     if (minion_sp)
         minion_sp->ImportDefinitionTo(interface_decl, decl_origin.decl);
-        
+
+    if (ObjCInterfaceDecl *super_class = interface_decl->getSuperClass())
+        RequireCompleteType(clang::QualType(super_class->getTypeForDecl(), 0));
+
     return true;
 }
 





More information about the lldb-commits mailing list