Fix issue with Cell::get_contained_cells() utility function (#2873)

This commit is contained in:
John Tramm 2024-02-14 23:19:10 -06:00 committed by GitHub
parent bf33a9e11b
commit 33c910ddd3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1272,6 +1272,9 @@ struct ParentCellStack {
//! compute an instance for the provided distribcell index
int32_t compute_instance(int32_t distribcell_index) const
{
if (distribcell_index == C_NONE)
return 0;
int32_t instance = 0;
for (const auto& parent_cell : this->parent_cells_) {
auto& cell = model::cells[parent_cell.cell_index];