Skip to content

Commit 39ef303

Browse files
authored
Merge pull request #8622 from gadfort/coverity
pdn: check for zero area
2 parents 9a0d0c7 + f517bc4 commit 39ef303

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/pdn/src/grid.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1749,6 +1749,12 @@ void InstanceGrid::checkSetup() const
17491749
inst_->getName());
17501750
}
17511751
}
1752+
1753+
if (total_pin_area == 0) {
1754+
// should not occur, implies all blocked pins have 0 area
1755+
continue;
1756+
}
1757+
17521758
const float pct
17531759
= 100 * static_cast<float>(total_overlap) / total_pin_area;
17541760
getLogger()->warn(utl::PDN,

0 commit comments

Comments
 (0)