aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-06-12 13:07:11 +0100
committergatecat <gatecat@ds0.me>2021-06-12 13:07:11 +0100
commitf9d3b99e6312374bdcf078e2ac3f6032cbaeb328 (patch)
tree2550db05a20b35df4752e4dcfe98d26596df14d9 /common
parent1c7efdc02ce3e36558374e641ea07833cb3a1849 (diff)
downloadnextpnr-f9d3b99e6312374bdcf078e2ac3f6032cbaeb328.tar.gz
nextpnr-f9d3b99e6312374bdcf078e2ac3f6032cbaeb328.tar.bz2
nextpnr-f9d3b99e6312374bdcf078e2ac3f6032cbaeb328.zip
HeAP: Fix memory error introduced by switch to dict
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'common')
-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]++;