aboutsummaryrefslogtreecommitdiffstats
path: root/common/placer_heap.cc
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-06-12 14:02:07 +0100
committerGitHub <noreply@github.com>2021-06-12 14:02:07 +0100
commitc1d35c1bce481264abeaba69d1791e4c0ad8aa35 (patch)
tree2550db05a20b35df4752e4dcfe98d26596df14d9 /common/placer_heap.cc
parent1c7efdc02ce3e36558374e641ea07833cb3a1849 (diff)
parentf9d3b99e6312374bdcf078e2ac3f6032cbaeb328 (diff)
downloadnextpnr-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
Diffstat (limited to 'common/placer_heap.cc')
-rw-r--r--common/placer_heap.cc2
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]++;