summaryrefslogtreecommitdiffstats
path: root/loc2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'loc2c.c')
-rw-r--r--loc2c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/loc2c.c b/loc2c.c
index c27242fa..5d6b5494 100644
--- a/loc2c.c
+++ b/loc2c.c
@@ -1407,12 +1407,12 @@ declare_noncontig_union (struct obstack *pool, int indent,
obstack_printf (pool, "%*schar bytes[%" PRIu64 "];\n",
indent * 2, "", loc->byte_size);
- obstack_printf (pool, "%*sstruct {\n", indent++ * 2, "");
-
if (loc->type == loc_noncontiguous)
{
Dwarf_Word offset = 0;
struct location *p;
+ obstack_printf (pool, "%*sstruct {\n", indent++ * 2, "");
+
for (p = loc->pieces; p != NULL; p = p->next)
{
obstack_printf (pool, "%*suint%" PRIu64 "_t p%" PRIu64 ";\n",