Skip to content

Commit aff8af4

Browse files
committed
[vpr][route][rr_graph] fix uninitialized var
1 parent fa2d648 commit aff8af4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

vpr/src/route/rr_graph_generation/rr_graph_timing_params.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,8 @@ void add_rr_graph_C_from_switches() {
5757
for (t_edge_size iedge = 0; iedge < rr_graph.num_edges(rr_id); iedge++) {
5858
to_node = size_t(rr_graph.edge_sink_node(rr_id, iedge));
5959
to_rr_type = rr_graph.node_type(RRNodeId(to_node));
60-
60+
switch_index = rr_graph.edge_switch(rr_id, iedge);
6161
if (to_rr_type == e_rr_type::CHANX || to_rr_type == e_rr_type::CHANY) {
62-
switch_index = rr_graph.edge_switch(rr_id, iedge);
6362
Cin = rr_graph.rr_switch_inf(RRSwitchId(switch_index)).Cin;
6463
Cout = rr_graph.rr_switch_inf(RRSwitchId(switch_index)).Cout;
6564
buffered = rr_graph.rr_switch_inf(RRSwitchId(switch_index)).buffered();

0 commit comments

Comments
 (0)