Merge pull request #726 from YosysHQ/gatecat/mem-errors

HeAP: Fix memory error introduced by switch to dict
This commit is contained in:
gatecat 2021-06-12 14:02:07 +01:00 committed by GitHub
commit c1d35c1bce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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]++;