summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/source/Symbol/ClangASTType.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Symbol/ClangASTType.cpp b/lldb/source/Symbol/ClangASTType.cpp
index 6f1002fbd9f..317e18b6566 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.
OpenPOWER on IntegriCloud