Fix compiler warning about if (#247)

This commit is contained in:
Akash Levy 2025-05-28 20:25:42 +02:00 committed by GitHub
parent b2bc995160
commit dba11c1ecf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -3980,13 +3980,14 @@ Sdc::unrecordPathDelayInternalTo(ExceptionPath *exception)
for (const Pin *pin : *to->pins()) { for (const Pin *pin : *to->pins()) {
if (!(hasLibertyCheckTo(pin) if (!(hasLibertyCheckTo(pin)
|| network_->isTopLevelPort(pin)) || network_->isTopLevelPort(pin))
&& !pathDelayTo(pin)) && !pathDelayTo(pin)) {
path_delay_internal_to_.erase(pin); path_delay_internal_to_.erase(pin);
if (exception->breakPath()) if (exception->breakPath())
path_delay_internal_to_break_.erase(pin); path_delay_internal_to_break_.erase(pin);
} }
} }
} }
}
bool bool
Sdc::hasLibertyCheckTo(const Pin *pin) Sdc::hasLibertyCheckTo(const Pin *pin)