mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 09:05:32 +00:00
design: do not delete when iterating over Design::modules() directly
This commit is contained in:
parent
635b2b8939
commit
75bb2c8c24
1 changed files with 1 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