mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-13 12:28:44 +00:00
ast/simplify: Interpret hdlname w/o expecting backslash
This commit is contained in:
parent
d8ce26a5ba
commit
b16f4900fd
|
@ -5662,7 +5662,7 @@ std::string AstNode::try_pop_module_prefix() const
|
||||||
if (current_scope.count(new_str)) {
|
if (current_scope.count(new_str)) {
|
||||||
std::string prefix = str.substr(0, pos);
|
std::string prefix = str.substr(0, pos);
|
||||||
auto it = current_scope_ast->attributes.find(ID::hdlname);
|
auto it = current_scope_ast->attributes.find(ID::hdlname);
|
||||||
if ((it != current_scope_ast->attributes.end() && it->second->str == prefix)
|
if ((it != current_scope_ast->attributes.end() && it->second->str == prefix.substr(1))
|
||||||
|| prefix == current_scope_ast->str)
|
|| prefix == current_scope_ast->str)
|
||||||
return new_str;
|
return new_str;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue