Complete the superclass type when completing an

Objective-C class type.

llvm-svn: 221022
This commit is contained in:
Sean Callanan 2014-10-31 23:55:36 +00:00
parent 6ce76925de
commit ada6d1693e
1 changed files with 4 additions and 0 deletions

View File

@ -449,8 +449,12 @@ AppleObjCTypeVendor::FinishDecl(clang::ObjCInterfaceDecl *interface_decl)
auto superclass_func = [interface_decl, this](ObjCLanguageRuntime::ObjCISA isa)
{
clang::ObjCInterfaceDecl *superclass_decl = GetDeclForISA(isa);
if (!superclass_decl)
return;
FinishDecl(superclass_decl);
interface_decl->setSuperClass(superclass_decl);
};