diff --git a/src/frontends/systemverilog/uhdm_ast.cc b/src/frontends/systemverilog/uhdm_ast.cc index 667b93d49..e19fce4b3 100644 --- a/src/frontends/systemverilog/uhdm_ast.cc +++ b/src/frontends/systemverilog/uhdm_ast.cc @@ -2080,7 +2080,8 @@ void UhdmAst::process_packed_array_typespec() wiretype_node->str = node->str; current_node->children.push_back(wiretype_node); current_node->is_custom_type = true; - current_node->str = node->str; + if (current_node->str == "") + current_node->str = node->str; delete node; } else if (node) { if (!node->str.empty()) {