[Lldb-commits] [lldb] r242929 - Don't complete an EnumDecl if it's already complete. We already do this check
Sean Callanan
scallanan at apple.com
Wed Jul 22 13:20:58 PDT 2015
Author: spyffe
Date: Wed Jul 22 15:20:57 2015
New Revision: 242929
URL: http://llvm.org/viewvc/llvm-project?rev=242929&view=rev
Log:
Don't complete an EnumDecl if it's already complete. We already do this check
for CXXRecordDecl.
<rdar://problem/21696221>
Modified:
lldb/trunk/source/Symbol/ClangASTType.cpp
Modified: lldb/trunk/source/Symbol/ClangASTType.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/ClangASTType.cpp?rev=242929&r1=242928&r2=242929&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/ClangASTType.cpp (original)
+++ lldb/trunk/source/Symbol/ClangASTType.cpp Wed Jul 22 15:20:57 2015
@@ -5920,7 +5920,7 @@ ClangASTType::CompleteTagDeclarationDefi
{
clang::EnumDecl *enum_decl = enum_type->getDecl();
- if (enum_decl)
+ if (enum_decl && !enum_decl->isCompleteDefinition())
{
/// TODO This really needs to be fixed.
More information about the lldb-commits
mailing list