summaryrefslogtreecommitdiffhomepage
path: root/ir/ir
diff options
context:
space:
mode:
authorManuel Mohr <manuel.mohr@kit.edu>2016-12-22 13:14:05 +0100
committerManuel Mohr <manuel.mohr@kit.edu>2016-12-22 13:16:03 +0100
commitf9e855918862a92050b116b7bf4f5f4d237a4934 (patch)
treeedd7bf0759e0e1bc858c765e7854482d346bf439 /ir/ir
parentaf8f4320e5d1b5d467d77e355e9a68e5da167de6 (diff)
irio: print a newline after the Unknown entity.
Diffstat (limited to 'ir/ir')
-rw-r--r--ir/ir/irio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ir/ir/irio.c b/ir/ir/irio.c
index aebeb19..4d39805 100644
--- a/ir/ir/irio.c
+++ b/ir/ir/irio.c
@@ -676,7 +676,7 @@ static void write_entity(write_env_t *env, ir_entity *ent)
case IR_ENTITY_UNKNOWN:
write_symbol(env, "unknown");
write_long(env, get_entity_nr(ent));
- return;
+ goto end_line;
case IR_ENTITY_SPILLSLOT:
panic("Unexpected entity %+F", ent); // Should only exist in backend
}
@@ -752,6 +752,7 @@ static void write_entity(write_env_t *env, ir_entity *ent)
break;
}
+end_line:
fputc('\n', env->file);
}