File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -3614,7 +3614,7 @@ bool ClangASTContext::IsDefined(lldb::opaque_compiler_type_t type) {
3614
3614
}
3615
3615
3616
3616
bool ClangASTContext::IsObjCClassType (const CompilerType &type) {
3617
- if (type && ClangUtil::IsClangType (type)) {
3617
+ if (ClangUtil::IsClangType (type)) {
3618
3618
clang::QualType qual_type (ClangUtil::GetCanonicalQualType (type));
3619
3619
3620
3620
const clang::ObjCObjectPointerType *obj_pointer_type =
@@ -3899,7 +3899,7 @@ bool ClangASTContext::IsBeingDefined(lldb::opaque_compiler_type_t type) {
3899
3899
3900
3900
bool ClangASTContext::IsObjCObjectPointerType (const CompilerType &type,
3901
3901
CompilerType *class_type_ptr) {
3902
- if (!type || ! ClangUtil::IsClangType (type))
3902
+ if (!ClangUtil::IsClangType (type))
3903
3903
return false ;
3904
3904
3905
3905
clang::QualType qual_type (ClangUtil::GetCanonicalQualType (type));
Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ using namespace clang;
15
15
using namespace lldb_private ;
16
16
17
17
bool ClangUtil::IsClangType (const CompilerType &ct) {
18
+ // Invalid types are never Clang types.
19
+ if (!ct)
20
+ return false ;
21
+
18
22
if (llvm::dyn_cast_or_null<ClangASTContext>(ct.GetTypeSystem ()) == nullptr )
19
23
return false ;
20
24
You can’t perform that action at this time.
0 commit comments