From cc4e6c65fd0bbc65c1d4ed8dea3ee01fc76e9d98 Mon Sep 17 00:00:00 2001 From: James Cherry Date: Mon, 3 Apr 2023 12:24:58 -0700 Subject: [PATCH] exception seg fault Signed-off-by: James Cherry --- sdc/ExceptionPath.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdc/ExceptionPath.cc b/sdc/ExceptionPath.cc index 76543c18..78678649 100644 --- a/sdc/ExceptionPath.cc +++ b/sdc/ExceptionPath.cc @@ -1805,8 +1805,8 @@ ExceptionThru::matches(const Pin *from_pin, const Network *network) { EdgePins edge_pins(from_pin, to_pin); - return ((pins_ && pins_->hasKey(to_pin)) - || (edges_ && edges_->hasKey(edge_pins)) + return ((pins_ && to_pin && pins_->hasKey(to_pin)) + || (edges_ && from_pin && to_pin && edges_->hasKey(edge_pins)) || (nets_ && to_pin && nets_->hasKey(network->net(to_pin))) || (insts_ && to_pin && insts_->hasKey(network->instance(to_pin)))) && rf_->matches(to_rf);