Fix a crasher on the MacOSX test suite for Objective C.

llvm-svn: 240351
This commit is contained in:
Greg Clayton
2015-06-22 22:35:07 +00:00
parent 2f633e7c3c
commit 4b9952629b

View File

@@ -5380,7 +5380,7 @@ ClangASTType::AddObjCClassProperty (const char *property_name,
&m_ast->Idents.get(property_name),
clang::SourceLocation(), //Source Location for AT
clang::SourceLocation(), //Source location for (
ivar_decl->getType(),
ivar_decl ? ivar_decl->getType() : property_clang_type.GetQualType(),
prop_type_source);
if (property_decl)