From d9e39865fd381399df1b55ace9a9c8e8610e5137 Mon Sep 17 00:00:00 2001 From: mszelwiga Date: Thu, 21 Nov 2024 13:29:08 +0100 Subject: [PATCH] Fix overwriting typedef name --- src/frontends/systemverilog/uhdm_ast.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()) {