MakeTimingModel::findArea() check for liberty

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2024-03-07 10:36:19 -07:00
parent 4363175149
commit 8acd1f3f35
1 changed files with 2 additions and 1 deletions

View File

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