mirror of https://github.com/YosysHQ/yosys.git
design: do not delete when iterating over Design::modules() directly
This commit is contained in:
parent
635b2b8939
commit
75bb2c8c24
|
@ -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…
Reference in New Issue