Revert a part of r214335 that I didn't mean to commit

llvm-svn: 214340
This commit is contained in:
Enrico Granata 2014-07-30 21:10:03 +00:00
parent 680928748b
commit eccdbde667
1 changed files with 7 additions and 9 deletions

View File

@ -78,16 +78,14 @@ GetCompleteQualType (clang::ASTContext *ast, clang::QualType qual_type, bool all
clang::TagDecl *tag_decl = tag_type->getDecl();
if (tag_decl)
{
if (!tag_decl->hasExternalLexicalStorage())
if (tag_decl->isCompleteDefinition())
return true;
if (!allow_completion)
return false;
if (tag_decl->hasExternalLexicalStorage())
{
if (tag_decl->isCompleteDefinition())
return true;
}
else
{
if (!allow_completion)
return false;
if (ast)
{
clang::ExternalASTSource *external_ast_source = ast->getExternalSource();