From 924037129c711cba718927a6a8b1f17cc101f7c1 Mon Sep 17 00:00:00 2001 From: David Shah Date: Tue, 17 Jul 2018 11:00:18 +0200 Subject: Fix driver finder when net is undriven Signed-off-by: David Shah --- common/design_utils.h | 2 ++ 1 file changed, 2 insertions(+) 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 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 { -- cgit v1.2.3