[2/2] Fix ABG_ASSERT in build_ir_node_from_die for DW_TAG_member
Commit Message
When the die is a member, it is the CU of the die that should not be
in the C language, not the dwarf reader current translation unit.
* src/abg-dwarf-reader.cc (build_ir_node_from_die): ABG_ASSERT
!rdr.die_is_in_c(), not rdr.cur_transl_unit().
Signed-off-by: Mark Wielaard <mark@klomp.org>
---
src/abg-dwarf-reader.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -15822,7 +15822,7 @@ build_ir_node_from_die(reader& rdr,
bool var_is_cloned = false;
if (tag == DW_TAG_member)
- ABG_ASSERT(!is_c_language(rdr.cur_transl_unit()->get_language()));
+ ABG_ASSERT(!rdr.die_is_in_c(die));
if (die_die_attribute(die, DW_AT_specification, spec_die, false)
|| (var_is_cloned = die_die_attribute(die, DW_AT_abstract_origin,