mirror of https://github.com/YosysHQ/yosys.git
simplify: fix fast lookup for packages
This commit is contained in:
parent
cb3aa6d76a
commit
dd3b47a470
|
|
@ -4862,11 +4862,11 @@ void AstNode::add_to_module_fast_lookup(dict<std::string, AstNode*>& module_fast
|
|||
dict<std::string, AstNode*> AstNode::generate_module_fast_lookup_for_genblock_expansion()
|
||||
{
|
||||
dict<std::string, AstNode*> module_fast_lookup;
|
||||
if (current_ast_mod) {
|
||||
for (auto& node : current_ast_mod->children) {
|
||||
AstNode *current_scope_ast = (current_ast_mod == nullptr) ? current_ast : current_ast_mod;
|
||||
log_assert(current_scope_ast);
|
||||
for (auto& node : current_scope_ast->children) {
|
||||
add_to_module_fast_lookup(module_fast_lookup, node.get());
|
||||
}
|
||||
}
|
||||
return module_fast_lookup;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue