mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 09:05:32 +00:00
Merge pull request #1927 from YosysHQ/eddie/design_remove_assert
kernel: Design::remove(RTLIL::Module *) to check refcount_modules_
This commit is contained in:
commit
aa552cefa3
2 changed files with 2 additions and 1 deletions
|
@ -340,7 +340,7 @@ struct DesignPass : public Pass {
|
|||
|
||||
if (reset_mode || !load_name.empty() || push_mode || pop_mode)
|
||||
{
|
||||
for (auto mod : design->modules())
|
||||
for (auto mod : design->modules().to_vector())
|
||||
design->remove(mod);
|
||||
|
||||
design->selection_stack.clear();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue