diff options
-rw-r--r-- | passes/hierarchy/hierarchy.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/passes/hierarchy/hierarchy.cc b/passes/hierarchy/hierarchy.cc index c680dbbd8..898763c64 100644 --- a/passes/hierarchy/hierarchy.cc +++ b/passes/hierarchy/hierarchy.cc @@ -621,8 +621,9 @@ struct HierarchyPass : public Pass { } std::set<Module*> blackbox_derivatives; + std::vector<Module*> design_modules = design->modules(); - for (auto module : design->modules()) + for (auto module : design_modules) for (auto cell : module->cells()) { Module *m = design->module(cell->type); |