3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-18 17:22:17 +00:00

verilog_location: rename location to Location to avoid conflict with Pass::location

This commit is contained in:
Emil J. Tywoniak 2025-08-08 16:22:54 +02:00
parent 5195f81257
commit 99ab73424d
8 changed files with 28 additions and 32 deletions

View file

@ -502,7 +502,7 @@ struct VerilogFrontend : public Frontend {
}
auto filename_shared = std::make_shared<std::string>(filename);
auto top_loc = location();
auto top_loc = Location();
top_loc.begin.filename = filename_shared;
parse_state.current_ast = new AST::AstNode(top_loc, AST::AST_DESIGN);
VerilogLexer lexer(&parse_state, &parse_mode, filename_shared);