Commit b0a98989 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

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.
parent 67e9a01a
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment