forked from OSchip/llvm-project
Complete the superclass type when completing an
Objective-C class type. llvm-svn: 221022
This commit is contained in:
parent
6ce76925de
commit
ada6d1693e
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue