3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-06 17:44:09 +00:00

design: do not delete when iterating over Design::modules() directly

This commit is contained in:
Eddie Hung 2020-04-14 10:43:05 -07:00
parent 635b2b8939
commit 75bb2c8c24

View file

@ -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();