mirror of
https://github.com/YosysHQ/yosys
synced 2026-07-15 03:35:40 +00:00
rtlil: set Module::design before name at all construction sites
This commit is contained in:
parent
734593e12d
commit
e2627b367e
11 changed files with 11 additions and 0 deletions
|
|
@ -1953,6 +1953,7 @@ RTLIL::Module *AstModule::clone() const
|
|||
RTLIL::Module *AstModule::clone(RTLIL::Design *dst, bool src_id_verbatim) const
|
||||
{
|
||||
AstModule *new_mod = new AstModule;
|
||||
new_mod->design = dst;
|
||||
new_mod->name = name;
|
||||
dst->add(new_mod);
|
||||
cloneInto(new_mod, src_id_verbatim);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue