Merge pull request #231 from The-OpenROAD-Project/update

Fix crash in MakeTimingModel::findArea when a cell has no Liberty
This commit is contained in:
Matt Liberty 2024-03-01 18:44:07 -08:00 committed by GitHub
commit 9eeba89076
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -168,7 +168,9 @@ MakeTimingModel::findArea()
while (leaf_iter->hasNext()) {
const Instance *inst = leaf_iter->next();
const LibertyCell *cell = network_->libertyCell(inst);
area += cell->area();
if (cell) {
area += cell->area();
}
}
delete leaf_iter;
return area;