Network::libertyPort

This commit is contained in:
James Cherry 2020-11-11 10:01:15 -07:00
parent b4851a6c7d
commit 52a4ce6b4c
1 changed files with 5 additions and 1 deletions

View File

@ -120,7 +120,11 @@ Network::libertyCell(const Instance *instance) const
LibertyPort *
Network::libertyPort(const Pin *pin) const
{
return libertyPort(port(pin));
Port *port = this->port(pin);
if (port)
return libertyPort(port);
else
return nullptr;
}
bool