aboutsummaryrefslogtreecommitdiffstats
path: root/fpga_interchange
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2022-03-11 15:45:25 +0000
committerGitHub <noreply@github.com>2022-03-11 15:45:25 +0000
commit20e595e2113bb5d2de479e70f64ebd980e756716 (patch)
tree3359794afffcb1fd9ca38ee05c0a0b45131aaa10 /fpga_interchange
parent1911a9523c86fdcb7b5542cd5fa5bfcbd23dc6fd (diff)
parent8c0dbdb2184b17aaee42fb46efadda5e864cd865 (diff)
downloadnextpnr-20e595e2113bb5d2de479e70f64ebd980e756716.tar.gz
nextpnr-20e595e2113bb5d2de479e70f64ebd980e756716.tar.bz2
nextpnr-20e595e2113bb5d2de479e70f64ebd980e756716.zip
Merge pull request #939 from antmicro/fix-global-router
[fpga_interchange] FIX: Don't hold reference to current visit in route_global_arc
Diffstat (limited to 'fpga_interchange')
-rw-r--r--fpga_interchange/globals.cc2
1 files changed, 1 insertions, 1 deletions
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<PortRef> 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;