@@ -2676,7 +2676,7 @@ static t_clb_to_clb_directs* alloc_and_load_clb_to_clb_directs(const t_direct_in
2676
2676
parse_direct_pin_name (directs[i].from_pin , directs[i].line , &start_pin_index, &end_pin_index, tile_name, port_name);
2677
2677
2678
2678
// Figure out which type, port, and pin is used
2679
- for (auto & type : device_ctx.physical_tile_types ) {
2679
+ for (const auto & type : device_ctx.physical_tile_types ) {
2680
2680
if (strcmp (type.name , tile_name) == 0 ) {
2681
2681
physical_tile = &type;
2682
2682
break ;
@@ -2690,7 +2690,7 @@ static t_clb_to_clb_directs* alloc_and_load_clb_to_clb_directs(const t_direct_in
2690
2690
clb_to_clb_directs[i].from_clb_type = physical_tile;
2691
2691
2692
2692
bool port_found = false ;
2693
- for (auto port : physical_tile->ports ) {
2693
+ for (const auto & port : physical_tile->ports ) {
2694
2694
if (0 == strcmp (port.name , port_name)) {
2695
2695
tile_port = port;
2696
2696
port_found = true ;
@@ -2716,7 +2716,7 @@ static t_clb_to_clb_directs* alloc_and_load_clb_to_clb_directs(const t_direct_in
2716
2716
parse_direct_pin_name (directs[i].to_pin , directs[i].line , &start_pin_index, &end_pin_index, tile_name, port_name);
2717
2717
2718
2718
// Figure out which type, port, and pin is used
2719
- for (auto & type : device_ctx.physical_tile_types ) {
2719
+ for (const auto & type : device_ctx.physical_tile_types ) {
2720
2720
if (strcmp (type.name , tile_name) == 0 ) {
2721
2721
physical_tile = &type;
2722
2722
break ;
@@ -2727,10 +2727,10 @@ static t_clb_to_clb_directs* alloc_and_load_clb_to_clb_directs(const t_direct_in
2727
2727
VPR_THROW (VPR_ERROR_ARCH, " Unable to find block %s.\n " , tile_name);
2728
2728
}
2729
2729
2730
- clb_to_clb_directs[i].from_clb_type = physical_tile;
2730
+ clb_to_clb_directs[i].to_clb_type = physical_tile;
2731
2731
2732
2732
port_found = false ;
2733
- for (auto port : physical_tile->ports ) {
2733
+ for (const auto & port : physical_tile->ports ) {
2734
2734
if (0 == strcmp (port.name , port_name)) {
2735
2735
tile_port = port;
2736
2736
port_found = true ;
0 commit comments