summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2012-09-28 20:47:47 +0000
committerSean Callanan <scallanan@apple.com>2012-09-28 20:47:47 +0000
commitd473424d53bc10d8eeb23d08fa1019afb3b35edd (patch)
treef0d9267e96e187f9c5c11a74da008c143bcb4ae9
parentb7243855d9bdaf319bd673e6bf3a33b9a0c7d0c8 (diff)
downloadbcm5719-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.cpp4
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()));
OpenPOWER on IntegriCloud