mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-05 10:50:25 +00:00
Preparations for RTLIL::IdString redesign: cleanup of existing code
This commit is contained in:
parent
75ffd1643c
commit
14412e6c95
12 changed files with 71 additions and 32 deletions
|
@ -192,7 +192,7 @@ struct DesignPass : public Pass {
|
|||
|
||||
for (auto mod : copy_src_modules)
|
||||
{
|
||||
std::string trg_name = as_name.empty() ? mod->name : RTLIL::escape_id(as_name);
|
||||
std::string trg_name = as_name.empty() ? std::string(mod->name) : RTLIL::escape_id(as_name);
|
||||
|
||||
if (copy_to_design->modules_.count(trg_name))
|
||||
delete copy_to_design->modules_.at(trg_name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue