Skip to content

Commit 7a69cd8

Browse files
committed
systemverilog: simplify unions
The code for handling unions has been added together with the code for structs, however it was never called due to a missing switch entry. Signed-off-by: Tomasz Gorochowik <[email protected]>
1 parent 3b3dcc5 commit 7a69cd8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

systemverilog-plugin/UhdmAst.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,6 +937,7 @@ static void simplify(AST::AstNode *current_node, AST::AstNode *parent_node)
937937
}
938938
break;
939939
case AST::AST_STRUCT:
940+
case AST::AST_UNION:
940941
simplify_struct(current_node, 0, parent_node);
941942
// instance rather than just a type in a typedef or outer struct?
942943
if (!current_node->str.empty() && current_node->str[0] == '\\') {

0 commit comments

Comments
 (0)