summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTamas Berghammer <tberghammer@google.com>2015-11-04 19:39:32 +0000
committerTamas Berghammer <tberghammer@google.com>2015-11-04 19:39:32 +0000
commit2a2d39d7609f2ec0fb14530e20346f3eba0f8ec2 (patch)
treeb9c43cefd8de0f94b96768aba579331b7c58f955
parentdec64d8e160697a7da3e8aa965beb5b43f8fff49 (diff)
downloadbcm5719-llvm-2a2d39d7609f2ec0fb14530e20346f3eba0f8ec2.tar.gz
bcm5719-llvm-2a2d39d7609f2ec0fb14530e20346f3eba0f8ec2.zip
Revert r252001 as it brake TestCppIncompleteTypes on all platforms
llvm-svn: 252067
-rw-r--r--lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
index 366d65787f2..64d619521fe 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
@@ -2777,23 +2777,6 @@ DWARFASTParserClang::ParseChildMembers (const SymbolContext& sc,
}
}
- if (ClangASTContext::IsCXXClassType(member_clang_type) && member_clang_type.GetCompleteType() == false)
- {
- module_sp->ReportError ("DWARF DIE at 0x%8.8x (class %s) has a member variable 0x%8.8x (%s) whose type is a forward declaration, not a complete definition.\nPlease file a bug against the compiler and include the preprocessed output for %s",
- parent_die.GetOffset(),
- parent_die.GetName(),
- die.GetOffset(),
- name,
- sc.comp_unit ? sc.comp_unit->GetPath().c_str() : "the source file");
- // We have no choice other than to pretend that the member class
- // is complete. If we don't do this, clang will crash when trying
- // to layout the class. Since we provide layout assistance, all
- // ivars in this class and other classes will be fine, this is
- // the best we can do short of crashing.
- ClangASTContext::StartTagDeclarationDefinition(member_clang_type);
- ClangASTContext::CompleteTagDeclarationDefinition(member_clang_type);
- }
-
field_decl = ClangASTContext::AddFieldToRecordType (class_clang_type,
name,
member_clang_type,
OpenPOWER on IntegriCloud