Skip to content

Commit

Permalink
Fix overwriting typedef name when processing packed enum (#2670)
Browse files Browse the repository at this point in the history
This PR addresses: #2647
  • Loading branch information
tgorochowik authored Nov 22, 2024
2 parents f50c2de + d9e3986 commit 79c7449
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 79c7449

Please sign in to comment.