Skip to content

Commit 3c86f71

Browse files
committed
systemverilog-plugin: set range before range_valid
Signed-off-by: Kamil Rakoczy <krakoczy@antmicro.com>
1 parent ab3e14f commit 3c86f71

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

systemverilog-plugin/UhdmAst.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,8 @@ static void convert_packed_unpacked_range(AST::AstNode *wire_node)
511511
if (packed_ranges.empty() && unpacked_ranges.empty()) {
512512
wire_node->attributes.erase(UhdmAst::packed_ranges());
513513
wire_node->attributes.erase(UhdmAst::unpacked_ranges());
514+
wire_node->range_left = 0;
515+
wire_node->range_right = 0;
514516
wire_node->range_valid = true;
515517
return;
516518
}

0 commit comments

Comments
 (0)