Skip to content

Commit 1603828

Browse files
committed
verilog_parser: fix locations of warnings for restrict keyword
1 parent 910ff3f commit 1603828

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontends/verilog/verilog_parser.y

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2585,7 +2585,7 @@ assert:
25852585
node->str = *$1;
25862586
}
25872587
if (!$3)
2588-
warn_at_loc(@$, "SystemVerilog does not allow \"restrict\" without \"property\".");
2588+
warn_at_loc(@3, "SystemVerilog does not allow \"restrict\" without \"property\".");
25892589
} |
25902590
opt_sva_label TOK_RESTRICT opt_property TOK_LPAREN TOK_EVENTUALLY expr TOK_RPAREN TOK_SEMICOL {
25912591
if (mode->norestrict) {
@@ -2596,7 +2596,7 @@ assert:
25962596
node->str = *$1;
25972597
}
25982598
if (!$3)
2599-
warn_at_loc(@$, "SystemVerilog does not allow \"restrict\" without \"property\".");
2599+
warn_at_loc(@3, "SystemVerilog does not allow \"restrict\" without \"property\".");
26002600
};
26012601

26022602
assert_property:

0 commit comments

Comments
 (0)