Skip to content

Commit b456589

Browse files
committed
PropActivityVisitor::visit null port check PR 301
Signed-off-by: James Cherry <[email protected]>
1 parent 37e1d15 commit b456589

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

power/Power.cc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -490,10 +490,11 @@ PropActivityVisitor::visit(Vertex *vertex)
490490
}
491491
if (network_->isDriver(pin)) {
492492
LibertyPort *port = network_->libertyPort(pin);
493-
LibertyCell *test_cell = port->libertyCell()->testCell();
494-
if (test_cell)
495-
port = test_cell->findLibertyPort(port->name());
496493
if (port) {
494+
LibertyCell *test_cell = port->libertyCell()->testCell();
495+
if (test_cell)
496+
port = test_cell->findLibertyPort(port->name());
497+
497498
FuncExpr *func = port->function();
498499
if (func) {
499500
PwrActivity activity = power_->evalActivity(func, inst);

0 commit comments

Comments
 (0)