diff options
author | Krzysztof Boronski <kboronski@antmicro.com> | 2022-03-11 07:53:42 -0600 |
---|---|---|
committer | Krzysztof Boronski <kboronski@antmicro.com> | 2022-03-11 07:53:42 -0600 |
commit | 8c0dbdb2184b17aaee42fb46efadda5e864cd865 (patch) | |
tree | 3359794afffcb1fd9ca38ee05c0a0b45131aaa10 | |
parent | 1911a9523c86fdcb7b5542cd5fa5bfcbd23dc6fd (diff) | |
download | nextpnr-8c0dbdb2184b17aaee42fb46efadda5e864cd865.tar.gz nextpnr-8c0dbdb2184b17aaee42fb46efadda5e864cd865.tar.bz2 nextpnr-8c0dbdb2184b17aaee42fb46efadda5e864cd865.zip |
interchange: Don't hold reference to visit in global routing
Signed-off-by: Krzysztof Boronski <kboronski@antmicro.com>
-rw-r--r-- | fpga_interchange/globals.cc | 2 |
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; |