Skip to content

Commit e7bffbf

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

power/Power.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,8 @@ PropActivityVisitor::visit(Vertex *vertex)
494494
LibertyCell *test_cell = port->libertyCell()->testCell();
495495
if (test_cell)
496496
port = test_cell->findLibertyPort(port->name());
497-
497+
}
498+
if (port) {
498499
FuncExpr *func = port->function();
499500
if (func) {
500501
PwrActivity activity = power_->evalActivity(func, inst);

0 commit comments

Comments
 (0)