forked from OSchip/llvm-project
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
This commit is contained in:
parent
b7243855d9
commit
d473424d53
|
@ -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",
|
log->Printf("AOCTV::FT [%u] Couldn't get the Objective-C interface for isa 0x%llx",
|
||||||
current_id,
|
current_id,
|
||||||
(uint64_t)isa);
|
(uint64_t)isa);
|
||||||
|
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
clang::QualType new_iface_type = ast_ctx->getObjCInterfaceType(iface_decl);
|
clang::QualType new_iface_type = ast_ctx->getObjCInterfaceType(iface_decl);
|
||||||
|
@ -651,6 +653,8 @@ AppleObjCTypeVendor::FindTypes (const ConstString &name,
|
||||||
current_id,
|
current_id,
|
||||||
dumper.GetCString(),
|
dumper.GetCString(),
|
||||||
(uint64_t)isa);
|
(uint64_t)isa);
|
||||||
|
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
types.push_back(ClangASTType(ast_ctx, new_iface_type.getAsOpaquePtr()));
|
types.push_back(ClangASTType(ast_ctx, new_iface_type.getAsOpaquePtr()));
|
||||||
|
|
Loading…
Reference in New Issue