mirror of https://github.com/YosysHQ/yosys.git
fix: add guard to avoid crash on null-pointer dereference
This commit is contained in:
parent
0dcfe5cd4b
commit
67373542ae
|
|
@ -652,7 +652,7 @@ struct SimInstance
|
|||
// If the cell is a blackbox child of an instance root module, skip it
|
||||
if (shared->blackbox_children) {
|
||||
Module *mod = module->design->module(cell->type);
|
||||
if (shared->instance_root_modules.count(mod->name))
|
||||
if (mod && shared->instance_root_modules.count(mod->name))
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue