3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-07-15 11:45:41 +00:00

fix: add guard to avoid crash on null-pointer dereference

This commit is contained in:
Chia-Hsiang Chang 2026-05-12 00:32:45 -07:00
parent 0dcfe5cd4b
commit 67373542ae

View file

@ -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;
}