[Lldb-commits] [lldb] r221022 - Complete the superclass type when completing an
Sean Callanan
scallanan at apple.com
Fri Oct 31 16:55:37 PDT 2014
Author: spyffe
Date: Fri Oct 31 18:55:36 2014
New Revision: 221022
URL: http://llvm.org/viewvc/llvm-project?rev=221022&view=rev
Log:
Complete the superclass type when completing an
Objective-C class type.
Modified:
lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeVendor.cpp
Modified: lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeVendor.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeVendor.cpp?rev=221022&r1=221021&r2=221022&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeVendor.cpp (original)
+++ lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeVendor.cpp Fri Oct 31 18:55:36 2014
@@ -449,8 +449,12 @@ AppleObjCTypeVendor::FinishDecl(clang::O
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);
};
More information about the lldb-commits
mailing list