Fixed the AST importer to ensure that base classes
of Objective-C classes are completed, and that variables of Objective-C types have their types completed when the variables are reported. This fixes a long-standing issue where ivars did not show up correctly on 32-bit OS X. <rdar://problem/12184093> llvm-svn: 197775
This commit is contained in:
@@ -1605,6 +1605,8 @@ ClangExpressionDeclMap::AddOneVariable (NameSearchContext &context, VariableSP v
|
||||
{
|
||||
if (const TagType *tag_type = dyn_cast<TagType>(parser_type))
|
||||
CompleteType(tag_type->getDecl());
|
||||
if (const ObjCObjectPointerType *objc_object_ptr_type = dyn_cast<ObjCObjectPointerType>(parser_type))
|
||||
CompleteType(objc_object_ptr_type->getInterfaceDecl());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user