summaryrefslogtreecommitdiffhomepage
path: root/ir/tr
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-05-05 10:39:47 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2016-05-05 10:39:47 +0200
commitb0a98989dfd95558c52efebe758dff41b1b5066f (patch)
tree8374ca6dcc841c537ed2526fd52b1cff907d3469 /ir/tr
parent67e9a01a6df81531f50c1234bf88c736e5a89222 (diff)
tr: Also set the ld_name in clone_entity().
This prevents triggering the unique name check in add_compound_member(). This partially fixes opt/proc_cloning001.c.
Diffstat (limited to 'ir/tr')
-rw-r--r--ir/tr/entity.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/ir/tr/entity.c b/ir/tr/entity.c
index 01fa85b..9a9b6e6 100644
--- a/ir/tr/entity.c
+++ b/ir/tr/entity.c
@@ -197,11 +197,12 @@ ir_entity *clone_entity(ir_entity const *const old, ident *const name,
res->overwrites = NULL;
res->overwrittenby = NULL;
- res->nr = get_irp_new_node_nr();
- res->name = name;
- res->visit = 0;
- res->usage = ir_usage_unknown;
- res->owner = owner;
+ res->nr = get_irp_new_node_nr();
+ res->name = name;
+ res->ld_name = name;
+ res->visit = 0;
+ res->usage = ir_usage_unknown;
+ res->owner = owner;
add_compound_member(owner, res);
hook_new_entity(res);
return res;