Bugfix in hierarchy blackbox module port width handling
authorClifford Wolf <clifford@clifford.at>
Sun, 7 Jan 2018 15:35:22 +0000 (16:35 +0100)
committerClifford Wolf <clifford@clifford.at>
Sun, 7 Jan 2018 15:35:22 +0000 (16:35 +0100)
passes/hierarchy/hierarchy.cc

index c680dbbd892e477e7fa17b630833a3e2c72c17b4..898763c647c7a3c89d1f65187d2189d3a213e277 100644 (file)
@@ -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);