HeAP: Fix memory error introduced by switch to dict

Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
gatecat 2021-06-12 13:07:11 +01:00
parent 1c7efdc02c
commit f9d3b99e63

View File

@ -638,7 +638,7 @@ class HeAPPlacer
for (auto cell : place_cells) {
chain_size[cell->name] = 1;
if (cell->cluster != ClusterId()) {
const auto &base = cell_locs[cell->name];
const auto base = cell_locs[cell->name];
for (auto child : cluster2cells.at(cell->cluster)) {
if (child->type == cell->type && child != cell)
chain_size[cell->name]++;