Skip to content

Commit e62d84a

Browse files
committed
[lib] fixed a bug on node lookup assignment in RR graph I/O when supporting multiple ptc
1 parent 9e87fb4 commit e62d84a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libs/librrgraph/src/io/rr_graph_uxsdcxx_serializer.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1792,13 +1792,14 @@ class RrGraphSerializer final : public uxsd::RrGraphBase<RrGraphContextTypes> {
17921792
/* Add the correct node into the vector */
17931793
for (size_t inode = 0; inode < rr_nodes_->size(); inode++) {
17941794
auto node = (*rr_nodes_)[inode];
1795-
rr_graph_builder.add_node_to_all_locs(node.id());
17961795
/* Set track numbers as a node may have multiple ptc */
17971796
if (rr_graph_builder.node_contain_multiple_ptc(node.id())) {
17981797
if (CHANX == rr_graph_->node_type(node.id()) || CHANY == rr_graph_->node_type(node.id())) {
17991798
rr_graph_builder.add_track_node_to_lookup(node.id());
18001799
}
1801-
}
1800+
} else {
1801+
rr_graph_builder.add_node_to_all_locs(node.id());
1802+
}
18021803
}
18031804
}
18041805

0 commit comments

Comments
 (0)