mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-13 04:28:18 +00:00
Set Verilog source location for explicit blocks (begin
... end
).
This commit is contained in:
parent
10a814f978
commit
00d74f0b9c
|
@ -2246,6 +2246,7 @@ behavioral_stmt:
|
||||||
exitTypeScope();
|
exitTypeScope();
|
||||||
if ($4 != NULL && $8 != NULL && *$4 != *$8)
|
if ($4 != NULL && $8 != NULL && *$4 != *$8)
|
||||||
frontend_verilog_yyerror("Begin label (%s) and end label (%s) don't match.", $4->c_str()+1, $8->c_str()+1);
|
frontend_verilog_yyerror("Begin label (%s) and end label (%s) don't match.", $4->c_str()+1, $8->c_str()+1);
|
||||||
|
SET_AST_NODE_LOC(ast_stack.back(), @2, @8);
|
||||||
delete $4;
|
delete $4;
|
||||||
delete $8;
|
delete $8;
|
||||||
ast_stack.pop_back();
|
ast_stack.pop_back();
|
||||||
|
|
Loading…
Reference in a new issue