summaryrefslogtreecommitdiffstats
path: root/loc2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'loc2c.c')
-rw-r--r--loc2c.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/loc2c.c b/loc2c.c
index 1d610aa2..a6b4d8da 100644
--- a/loc2c.c
+++ b/loc2c.c
@@ -1129,7 +1129,8 @@ c_translate_pointer (struct obstack *pool, int indent,
static Dwarf_Word
base_byte_size (Dwarf_Die *typedie, struct location *origin)
{
- assert (dwarf_tag (typedie) == DW_TAG_base_type);
+ assert (dwarf_tag (typedie) == DW_TAG_base_type ||
+ dwarf_tag (typedie) == DW_TAG_enumeration_type);
Dwarf_Attribute attr_mem;
Dwarf_Word size;