diff --git a/passes/hierarchy/hierarchy.cc b/passes/hierarchy/hierarchy.cc index 66d66032..58b796a6 100644 --- a/passes/hierarchy/hierarchy.cc +++ b/passes/hierarchy/hierarchy.cc @@ -32,7 +32,7 @@ PRIVATE_NAMESPACE_BEGIN struct generate_port_decl_t { bool input, output; - RTLIL::IdString portname; + string portname; int index; }; @@ -101,7 +101,7 @@ void generate(RTLIL::Design *design, const std::vector &celltypes, for (auto &decl : portdecls) if (decl.index == 0 && patmatch(decl.portname.c_str(), RTLIL::unescape_id(portname).c_str())) { generate_port_decl_t d = decl; - d.portname = portname; + d.portname = portname.str(); d.index = *indices.begin(); log_assert(!indices.empty()); indices.erase(d.index);