We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bdaa71 commit a5106f4Copy full SHA for a5106f4
vpr/src/base/stats.cpp
@@ -244,8 +244,8 @@ void write_sb_count_stats(const Netlist<>& net_list,
244
RRNodeId sink_node = rt_node.inode;
245
std::vector<RREdgeId> edges = rr_graph.find_edges(src_node, sink_node);
246
VTR_ASSERT(edges.size() == 1);
247
- RRSwitchId rr_switch_id = rr_graph.edge_switch(edges[0]);
248
- const std::string& sw_template_id = rr_graph.rr_switch_inf(rr_switch_id).template_id;
+ RRSwitchId switch_id = RRSwitchId(rr_graph.edge_switch(edges[0]));
+ const std::string& sw_template_id = rr_graph.rr_switch_inf(switch_id).template_id;
249
if (sw_template_id.empty()) {
250
continue;
251
}
0 commit comments