diff options
author | Sean Callanan <scallanan@apple.com> | 2012-09-28 20:47:47 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2012-09-28 20:47:47 +0000 |
commit | d473424d53bc10d8eeb23d08fa1019afb3b35edd (patch) | |
tree | f0d9267e96e187f9c5c11a74da008c143bcb4ae9 | |
parent | b7243855d9bdaf319bd673e6bf3a33b9a0c7d0c8 (diff) | |
download | bcm5719-llvm-d473424d53bc10d8eeb23d08fa1019afb3b35edd.tar.gz bcm5719-llvm-d473424d53bc10d8eeb23d08fa1019afb3b35edd.zip |
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
-rw-r--r-- | lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeVendor.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeVendor.cpp b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeVendor.cpp index 9492ec65467..ea71289578a 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())); |