From ceece95426bc9f36ba5da10853894fb270b95b9b Mon Sep 17 00:00:00 2001 From: Sean Callanan Date: Wed, 22 Jul 2015 20:20:57 +0000 Subject: [PATCH] Don't complete an EnumDecl if it's already complete. We already do this check for CXXRecordDecl. llvm-svn: 242929 --- lldb/source/Symbol/ClangASTType.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/source/Symbol/ClangASTType.cpp b/lldb/source/Symbol/ClangASTType.cpp index 6f1002fbd9fc..317e18b6566d 100644 --- a/lldb/source/Symbol/ClangASTType.cpp +++ b/lldb/source/Symbol/ClangASTType.cpp @@ -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.