mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-13 04:28:18 +00:00
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)
|
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->remove(mod);
|
||||||
|
|
||||||
design->selection_stack.clear();
|
design->selection_stack.clear();
|
||||||
|
|
Loading…
Reference in a new issue