From: Miodrag Milanovic Date: Fri, 26 Jun 2020 18:11:01 +0000 (+0200) Subject: Fix crash in verific frontend X-Git-Tag: working-ls180~443 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b822beb1b2e667459f4864b759b7f4d82a064354;p=yosys.git Fix crash in verific frontend --- diff --git a/frontends/verific/verific.cc b/frontends/verific/verific.cc index ba631475f..ccd13e92f 100644 --- a/frontends/verific/verific.cc +++ b/frontends/verific/verific.cc @@ -1111,7 +1111,8 @@ void VerificImporter::import_netlist(RTLIL::Design *design, Netlist *nl, std::se wire->start_offset = min(netbus->LeftIndex(), netbus->RightIndex()); MapIter mibus; FOREACH_NET_OF_NETBUS(netbus, mibus, net) { - import_attributes(wire->attributes, net, nl); + if (net) + import_attributes(wire->attributes, net, nl); break; }