From 628e1f02134f9b01a83a4943fa3e87e325beb9fa Mon Sep 17 00:00:00 2001 From: andyfox-rushc Date: Wed, 27 Nov 2024 11:04:09 -0800 Subject: [PATCH] Make sure input_net assigned to print Signed-off-by: andyfox-rushc --- src/rsz/src/Resizer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rsz/src/Resizer.cc b/src/rsz/src/Resizer.cc index 1ed70c39cd4..34a4509c2a7 100644 --- a/src/rsz/src/Resizer.cc +++ b/src/rsz/src/Resizer.cc @@ -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(); @@ -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; }