Fix a bug where we will crash if we have a class "B" that is contained inside a class "A" in the DWARF where "A" is a forward declaration.

<rdar://problem/14673945>
<rdar://problem/15682781>

llvm-svn: 200985
This commit is contained in:
Greg Clayton 2014-02-07 19:21:56 +00:00
parent 1d736c31d6
commit 4c484ecb31
1 changed files with 5 additions and 0 deletions

View File

@ -6263,6 +6263,11 @@ SymbolFileDWARF::ParseType (const SymbolContext& sc, DWARFCompileUnit* dwarf_cu,
case DW_TAG_subprogram: case DW_TAG_subprogram:
case DW_TAG_member: case DW_TAG_member:
case DW_TAG_APPLE_property: case DW_TAG_APPLE_property:
case DW_TAG_class_type:
case DW_TAG_structure_type:
case DW_TAG_enumeration_type:
case DW_TAG_typedef:
case DW_TAG_union_type:
child_die = NULL; child_die = NULL;
is_forward_declaration = false; is_forward_declaration = false;
break; break;