diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2020-06-26 20:11:01 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2020-06-26 20:11:01 +0200 |
commit | b822beb1b2e667459f4864b759b7f4d82a064354 (patch) | |
tree | 54b5c358abec1318e92ef41f43912158f6c48c6a /frontends | |
parent | 3840cfc016cb3b7f408b4b56c30911089218e6a8 (diff) | |
download | yosys-b822beb1b2e667459f4864b759b7f4d82a064354.tar.gz yosys-b822beb1b2e667459f4864b759b7f4d82a064354.tar.bz2 yosys-b822beb1b2e667459f4864b759b7f4d82a064354.zip |
Fix crash in verific frontend
Diffstat (limited to 'frontends')
-rw-r--r-- | frontends/verific/verific.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |