exception seg fault

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2023-04-03 12:24:58 -07:00
parent 70001adbb4
commit cc4e6c65fd
1 changed files with 2 additions and 2 deletions

View File

@ -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);