Skip to content

Commit 2a691f0

Browse files
authored
Merge pull request #375 from antmicro/simplify_unions
systemverilog: simplify unions
2 parents 3b3dcc5 + 7a69cd8 commit 2a691f0

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)