Skip to content

Commit 26eb722

Browse files
committed
Allows Union Types in Parameter Fields
If a union type was referenced as a parameter this would fail. Signed-off-by: Ethan Mahintorabi <[email protected]>
1 parent f8daf6d commit 26eb722

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
@@ -4835,6 +4835,7 @@ void UhdmAst::process_parameter()
48354835
shared.report.mark_handled(typespec_h);
48364836
break;
48374837
}
4838+
case vpiUnionTypespec:
48384839
case vpiStructTypespec: {
48394840
visit_one_to_one({vpiTypespec}, obj_h, [&](AST::AstNode *node) {
48404841
if (node && !node->str.empty()) {

0 commit comments

Comments
 (0)