diff options
author | airskywater <96818686+airskywater@users.noreply.github.com> | 2022-09-24 12:03:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-24 12:03:44 +0800 |
commit | c702e15a3fc9299499d7e362b180bc3ba778bbb4 (patch) | |
tree | ef5ef98f733fad7b8a49702cc19fcaa8c023ce58 | |
parent | 78f67ae5bcf62138445cf25d5f1e21dd3f7caf66 (diff) | |
download | nextpnr-c702e15a3fc9299499d7e362b180bc3ba778bbb4.tar.gz nextpnr-c702e15a3fc9299499d7e362b180bc3ba778bbb4.tar.bz2 nextpnr-c702e15a3fc9299499d7e362b180bc3ba778bbb4.zip |
Add more sanity check for pointers
-rw-r--r-- | common/kernel/timing.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/kernel/timing.cc b/common/kernel/timing.cc index 66de8dfc..a9f64afa 100644 --- a/common/kernel/timing.cc +++ b/common/kernel/timing.cc @@ -299,6 +299,7 @@ void TimingAnalyser::identify_related_domains() std::function<void(const NetInfo *, dict<IdString, delay_t> &, delay_t)> find_net_drivers = [&](const NetInfo *ni, dict<IdString, delay_t> &drivers, delay_t delay_acc) { // Get driving cell and port + if (nullptr == ni) return; const CellInfo *cell = ni->driver.cell; if (nullptr == cell) return; |