From 5017ff4a978ae92a3a00d120bed29de9425108aa Mon Sep 17 00:00:00 2001 From: Eddie Hung Date: Thu, 30 Apr 2020 07:48:47 -0700 Subject: [PATCH] verific: ignore anonymous enums --- frontends/verific/verific.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontends/verific/verific.cc b/frontends/verific/verific.cc index b818d01f7..fe4bda68e 100644 --- a/frontends/verific/verific.cc +++ b/frontends/verific/verific.cc @@ -172,7 +172,10 @@ void VerificImporter::import_attributes(dict &att return; if (nl->IsFromVhdl() && strcmp(type_range->GetTypeName(), "STD_LOGIC") == 0) return; - attributes.emplace(ID::wiretype, RTLIL::escape_id(type_range->GetTypeName())); + auto type_name = type_range->GetTypeName(); + if (!type_name) + return; + attributes.emplace(ID::wiretype, RTLIL::escape_id(type_name)); MapIter mi; const char *k, *v; -- 2.30.2