From 67373542aeabbe59ce83e041f2bdbc611ffb5dff Mon Sep 17 00:00:00 2001 From: Chia-Hsiang Chang Date: Tue, 12 May 2026 00:32:45 -0700 Subject: [PATCH] fix: add guard to avoid crash on null-pointer dereference --- passes/sat/sim.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passes/sat/sim.cc b/passes/sat/sim.cc index a5941f2b3..8ab3efa09 100644 --- a/passes/sat/sim.cc +++ b/passes/sat/sim.cc @@ -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; }