File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ static t_bb get_net_bounding_box(const AtomNetId atom_net_id) {
30
30
const auto & rr_graph = g_vpr_ctx.device ().rr_graph ;
31
31
32
32
// Lambda to get the bounding box of a route tree
33
- auto route_tree_bb = []( const RRGraphView& rr_graph, const RouteTree& route_tree) {
33
+ auto route_tree_bb = [&]( const RouteTree& route_tree) {
34
34
t_bb bb;
35
35
36
36
// Set the initial bounding box to the root node's location
@@ -70,7 +70,7 @@ static t_bb get_net_bounding_box(const AtomNetId atom_net_id) {
70
70
const auto & route_tree = route_trees[atom_net_id];
71
71
if (!route_tree)
72
72
return t_bb ();
73
- return route_tree_bb (rr_graph, *route_tree);
73
+ return route_tree_bb (*route_tree);
74
74
} else {
75
75
// If two-stage router is used, we need to first get the cluster net id
76
76
// corresponding to the atom net and then get the bounding box of the net
@@ -87,7 +87,7 @@ static t_bb get_net_bounding_box(const AtomNetId atom_net_id) {
87
87
const auto & route_tree = route_trees[clb_net_id];
88
88
if (!route_tree)
89
89
continue ;
90
- bbs.push_back (route_tree_bb (rr_graph, *route_tree));
90
+ bbs.push_back (route_tree_bb (*route_tree));
91
91
}
92
92
if (bbs.empty ()) {
93
93
return t_bb ();
You can’t perform that action at this time.
0 commit comments