Skip to content

Commit ef245bc

Browse files
committed
oops
1 parent 87261d2 commit ef245bc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

utils/route_diag/src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ static void do_one_route(const Netlist<>& net_list,
127127
if (found_path) {
128128
VTR_ASSERT(cheapest.index == sink_node);
129129

130-
vtr::optional<RouteTreeNode&> rt_node_of_sink;
130+
vtr::optional<const RouteTreeNode&> rt_node_of_sink;
131131
std::tie(std::ignore, rt_node_of_sink) = tree.update_from_heap(&cheapest, OPEN, nullptr, router_opts.flat_routing);
132132

133133
//find delay

vpr/test/test_connection_router.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ static float do_one_route(int source_node,
8181
REQUIRE(cheapest.index == sink_node);
8282

8383
// Get the delay
84-
vtr::optional<RouteTreeNode&> rt_node_of_sink;
84+
vtr::optional<const RouteTreeNode&> rt_node_of_sink;
8585
std::tie(std::ignore, rt_node_of_sink) = tree.update_from_heap(&cheapest, OPEN, nullptr, router_opts.flat_routing);
8686
delay = rt_node_of_sink.value().Tdel;
8787
}

0 commit comments

Comments
 (0)