summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
index 7a3b16e0b31..a7b27129487 100644
--- a/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
+++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
@@ -275,7 +275,7 @@ ClangASTSource::CompleteType (TagDecl *tag_decl)
CompilerType clang_type (type->GetFullCompilerType ());
- if (!clang_type)
+ if (!ClangUtil::IsClangType(clang_type))
continue;
const TagType *tag_type = ClangUtil::GetQualType(clang_type)->getAs<TagType>();
@@ -315,7 +315,7 @@ ClangASTSource::CompleteType (TagDecl *tag_decl)
CompilerType clang_type (type->GetFullCompilerType ());
- if (!clang_type)
+ if (!ClangUtil::IsClangType(clang_type))
continue;
const TagType *tag_type = ClangUtil::GetQualType(clang_type)->getAs<TagType>();
@@ -2053,7 +2053,7 @@ NameSearchContext::AddGenericFunDecl()
clang::NamedDecl *
NameSearchContext::AddTypeDecl(const CompilerType &clang_type)
{
- if (clang_type)
+ if (ClangUtil::IsClangType(clang_type))
{
QualType qual_type = ClangUtil::GetQualType(clang_type);
OpenPOWER on IntegriCloud