Skip to content

Commit

Permalink
Fix overwriting typedef name
Browse files Browse the repository at this point in the history
  • Loading branch information
Szelwiga committed Nov 21, 2024
1 parent f50c2de commit d9e3986
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/frontends/systemverilog/uhdm_ast.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit d9e3986

Please sign in to comment.