summaryrefslogtreecommitdiffstats
path: root/loc2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'loc2c.c')
-rw-r--r--loc2c.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/loc2c.c b/loc2c.c
index 26ca3ba1..9d58269c 100644
--- a/loc2c.c
+++ b/loc2c.c
@@ -1612,7 +1612,9 @@ c_translate_pointer (struct obstack *pool, int indent,
Dwarf_Addr dwbias __attribute__ ((unused)),
Dwarf_Die *typedie, struct location **input)
{
- assert (dwarf_tag (typedie) == DW_TAG_pointer_type);
+ assert (dwarf_tag (typedie) == DW_TAG_pointer_type ||
+ dwarf_tag (typedie) == DW_TAG_reference_type ||
+ dwarf_tag (typedie) == DW_TAG_rvalue_reference_type);
Dwarf_Attribute attr_mem;
Dwarf_Word byte_size;