From d473424d53bc10d8eeb23d08fa1019afb3b35edd Mon Sep 17 00:00:00 2001 From: Sean Callanan Date: Fri, 28 Sep 2012 20:47:47 +0000 Subject: [PATCH] Fixed a bug where if something went wrong while constructing the ObjCInterfaceDecl for an ISA, we'd continue and try to use that Decl anyway, possibly causing a crash. llvm-svn: 164844 --- .../ObjC/AppleObjCRuntime/AppleObjCTypeVendor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeVendor.cpp b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeVendor.cpp index 9492ec65467f..ea71289578a2 100644 --- a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeVendor.cpp +++ b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeVendor.cpp @@ -640,6 +640,8 @@ AppleObjCTypeVendor::FindTypes (const ConstString &name, log->Printf("AOCTV::FT [%u] Couldn't get the Objective-C interface for isa 0x%llx", current_id, (uint64_t)isa); + + break; } clang::QualType new_iface_type = ast_ctx->getObjCInterfaceType(iface_decl); @@ -651,6 +653,8 @@ AppleObjCTypeVendor::FindTypes (const ConstString &name, current_id, dumper.GetCString(), (uint64_t)isa); + + break; } types.push_back(ClangASTType(ast_ctx, new_iface_type.getAsOpaquePtr()));