aboutsummaryrefslogtreecommitdiffstats
path: root/common/design_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/design_utils.h')
-rw-r--r--common/design_utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/design_utils.h b/common/design_utils.h
index cb802a1a..95975179 100644
--- a/common/design_utils.h
+++ b/common/design_utils.h
@@ -73,6 +73,8 @@ template <typename F1> CellInfo *net_driven_by(const Context *ctx, const NetInfo
{
if (net == nullptr)
return nullptr;
+ if (net->driver.cell == nullptr)
+ return nullptr;
if (cell_pred(ctx, net->driver.cell) && net->driver.port == port) {
return net->driver.cell;
} else {