Skip to content

Commit

Permalink
Make sure input_net assigned to print
Browse files Browse the repository at this point in the history
Signed-off-by: andyfox-rushc <andy@rushc.com>
  • Loading branch information
andyfox-rushc committed Nov 27, 2024
1 parent 7ad469e commit 628e1f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rsz/src/Resizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ Instance* Resizer::bufferInput(const Pin* top_pin, LibertyCell* buffer_cell)
// Term* term = db_network_->term(top_pin);
// odb::dbBTerm* top_ip_bterm = db_network_ -> staToDb(term);

Net* input_net;
Net* input_net = nullptr;
dbNet* top_pin_flat_net = top_pin_ip_bterm->getNet();
odb::dbModNet* top_pin_hier_net = top_pin_ip_bterm->getModNet();

Expand Down Expand Up @@ -718,7 +718,7 @@ Instance* Resizer::bufferInput(const Pin* top_pin, LibertyCell* buffer_cell)
logger_->warn(RSZ,
85,
"Input {} can't be buffered due to dont-touch fanout {}",
network_->name(input_net),
(input_net ? network_->name(input_net) : "no-input-net"),
network_->name(pin));
break;
}
Expand Down

0 comments on commit 628e1f0

Please sign in to comment.