Skip to content

Commit 69eba03

Browse files
committed
Fix segfault when encountering primary output in SizeDownMove.
1 parent f5879e6 commit 69eba03

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/rsz/src/SizeDownMove.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ bool SizeDownMove::doMove(const Path* drvr_path,
126126

127127
Pin* load_pin = load_vertex->pin();
128128
LibertyPort* load_port = network_->libertyPort(load_pin);
129+
// Skip primary outputs
130+
if (!load_port) {
131+
continue;
132+
}
129133
LibertyCell* load_cell = load_port->libertyCell();
130134
Instance* load_inst = network_->instance(load_pin);
131135

0 commit comments

Comments
 (0)