Don't complete an EnumDecl if it's already complete. We already do this check

for CXXRecordDecl.

<rdar://problem/21696221>

llvm-svn: 242929
This commit is contained in:
Sean Callanan 2015-07-22 20:20:57 +00:00
parent 8c2afa0cd5
commit ceece95426
1 changed files with 1 additions and 1 deletions

View File

@ -5920,7 +5920,7 @@ ClangASTType::CompleteTagDeclarationDefinition ()
{
clang::EnumDecl *enum_decl = enum_type->getDecl();
if (enum_decl)
if (enum_decl && !enum_decl->isCompleteDefinition())
{
/// TODO This really needs to be fixed.