From 26eb722c1112011de623f30467cd130686107d85 Mon Sep 17 00:00:00 2001 From: Ethan Mahintorabi Date: Thu, 17 Aug 2023 20:06:49 +0000 Subject: [PATCH] Allows Union Types in Parameter Fields If a union type was referenced as a parameter this would fail. Signed-off-by: Ethan Mahintorabi --- systemverilog-plugin/UhdmAst.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/systemverilog-plugin/UhdmAst.cc b/systemverilog-plugin/UhdmAst.cc index 0be44d71..bfc20b91 100644 --- a/systemverilog-plugin/UhdmAst.cc +++ b/systemverilog-plugin/UhdmAst.cc @@ -4835,6 +4835,7 @@ void UhdmAst::process_parameter() shared.report.mark_handled(typespec_h); break; } + case vpiUnionTypespec: case vpiStructTypespec: { visit_one_to_one({vpiTypespec}, obj_h, [&](AST::AstNode *node) { if (node && !node->str.empty()) {