diff options
author | gatecat <gatecat@ds0.me> | 2021-06-12 14:02:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-12 14:02:07 +0100 |
commit | c1d35c1bce481264abeaba69d1791e4c0ad8aa35 (patch) | |
tree | 2550db05a20b35df4752e4dcfe98d26596df14d9 | |
parent | 1c7efdc02ce3e36558374e641ea07833cb3a1849 (diff) | |
parent | f9d3b99e6312374bdcf078e2ac3f6032cbaeb328 (diff) | |
download | nextpnr-c1d35c1bce481264abeaba69d1791e4c0ad8aa35.tar.gz nextpnr-c1d35c1bce481264abeaba69d1791e4c0ad8aa35.tar.bz2 nextpnr-c1d35c1bce481264abeaba69d1791e4c0ad8aa35.zip |
Merge pull request #726 from YosysHQ/gatecat/mem-errors
HeAP: Fix memory error introduced by switch to dict
-rw-r--r-- | common/placer_heap.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/placer_heap.cc b/common/placer_heap.cc index f1419bdb..a1d4a61b 100644 --- a/common/placer_heap.cc +++ b/common/placer_heap.cc @@ -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]++; |