From 446ccf1f05b2b36db9161bf4ab050778a1cbaee6 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sun, 7 Jan 2018 16:35:22 +0100 Subject: [PATCH] Bugfix in hierarchy blackbox module port width handling --- passes/hierarchy/hierarchy.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 blackbox_derivatives; + std::vector 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); -- 2.30.2