forked from OSchip/llvm-project
[lldb][NFC] Simplify structure parsing code in DWARFASTParserClang::ParseTypeFromDWARF
This way it looks more like the code around it. The assert is also gone as it just checks that the variables we declare directly above were not initialized by anyone. That made more sense when this was one large function.
This commit is contained in:
parent
4023bd05fc
commit
0181338dda
|
@ -483,10 +483,8 @@ TypeSP DWARFASTParserClang::ParseTypeFromDWARF(const SymbolContext &sc,
|
|||
case DW_TAG_structure_type:
|
||||
case DW_TAG_union_type:
|
||||
case DW_TAG_class_type: {
|
||||
assert((!type_sp && !clang_type) &&
|
||||
"Did not expect partially computed structure-like type");
|
||||
TypeSP struct_like_type_sp = ParseStructureLikeDIE(sc, die, attrs);
|
||||
return UpdateSymbolContextScopeForType(sc, die, struct_like_type_sp);
|
||||
type_sp = ParseStructureLikeDIE(sc, die, attrs);
|
||||
break;
|
||||
}
|
||||
|
||||
case DW_TAG_enumeration_type: {
|
||||
|
|
Loading…
Reference in New Issue