Skip to content

Commit

Permalink
Merge pull request The-OpenROAD-Project#5765 from andyfox-rushc/cv_fix1
Browse files Browse the repository at this point in the history
dbNetwork.cc:getOwningInstanceParent fix for nullptr test
  • Loading branch information
maliberty authored Sep 18, 2024
2 parents 642cdeb + ccf8a8e commit b46a48b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/dbSta/src/dbNetwork.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2610,10 +2610,12 @@ Instance* dbNetwork::getOwningInstanceParent(Pin* drvr_pin)
} else if (mod_inst) {
module = mod_inst->getParent();
}
Instance* parent = (module == (block_->getTopModule()))
? topInstance()
: dbToSta(module->getModInst());
return parent;
if (module) {
Instance* parent = (module == (block_->getTopModule()))
? topInstance()
: dbToSta(module->getModInst());
return parent;
}
}
return topInstance();
}
Expand Down

0 comments on commit b46a48b

Please sign in to comment.