forked from OSchip/llvm-project
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:
parent
8c2afa0cd5
commit
ceece95426
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue