From 8c0dbdb2184b17aaee42fb46efadda5e864cd865 Mon Sep 17 00:00:00 2001 From: Krzysztof Boronski Date: Fri, 11 Mar 2022 07:53:42 -0600 Subject: [PATCH] interchange: Don't hold reference to visit in global routing Signed-off-by: Krzysztof Boronski --- fpga_interchange/globals.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fpga_interchange/globals.cc b/fpga_interchange/globals.cc index 6efd1d89..eaff30e0 100644 --- a/fpga_interchange/globals.cc +++ b/fpga_interchange/globals.cc @@ -76,7 +76,7 @@ static int route_global_arc(Context *ctx, NetInfo *net, store_index usr while (!visit_queue.empty()) { WireId cursor = visit_queue.front(); visit_queue.pop(); - auto &curr_visit = visits.at(cursor); + auto curr_visit = visits.at(cursor); // We're now at least one layer deeper than a valid visit, any further exploration is futile if (startpoint != WireId() && curr_visit.total_hops > best_visit.total_hops) break;