From f9d3b99e6312374bdcf078e2ac3f6032cbaeb328 Mon Sep 17 00:00:00 2001 From: gatecat Date: Sat, 12 Jun 2021 13:07:11 +0100 Subject: HeAP: Fix memory error introduced by switch to dict Signed-off-by: gatecat --- common/placer_heap.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/placer_heap.cc') 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]++; -- cgit v1.2.3