Skip to content

Commit d744f8c

Browse files
call c_str() on deafult name string
1 parent a2418f3 commit d744f8c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

libs/libarchfpga/src/arch_util.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -566,8 +566,7 @@ void ProcessLutClass(t_pb_type* lut_pb_type) {
566566
lut_pb_type->modes[1].num_pb_type_children = 1;
567567
lut_pb_type->modes[1].mode_power = new t_mode_power();
568568
lut_pb_type->modes[1].pb_type_children = new t_pb_type[1];
569-
alloc_and_load_default_child_for_pb_type(lut_pb_type, default_name,
570-
lut_pb_type->modes[1].pb_type_children);
569+
alloc_and_load_default_child_for_pb_type(lut_pb_type, default_name, lut_pb_type->modes[1].pb_type_children);
571570
lut_pb_type->annotations.clear();
572571
lut_pb_type->modes[1].pb_type_children[0].depth = lut_pb_type->depth + 1;
573572
lut_pb_type->modes[1].pb_type_children[0].parent_mode = &lut_pb_type->modes[1];
@@ -597,7 +596,7 @@ void ProcessLutClass(t_pb_type* lut_pb_type) {
597596
lut_pb_type->name);
598597

599598
lut_pb_type->modes[1].interconnect[1].type = DIRECT_INTERC;
600-
lut_pb_type->modes[1].interconnect[1].input_string = vtr::string_fmt("%s.%s", default_name, out_port->name);
599+
lut_pb_type->modes[1].interconnect[1].input_string = vtr::string_fmt("%s.%s", default_name.c_str(), out_port->name);
601600
lut_pb_type->modes[1].interconnect[1].output_string = vtr::string_fmt("%s.%s", lut_pb_type->name, out_port->name);
602601
lut_pb_type->modes[1].interconnect[1].infer_annotations = true;
603602

@@ -642,8 +641,7 @@ void ProcessMemoryClass(t_pb_type* mem_pb_type) {
642641

643642
mem_pb_type->modes[0].num_pb_type_children = 1;
644643
mem_pb_type->modes[0].pb_type_children = new t_pb_type[1];
645-
alloc_and_load_default_child_for_pb_type(mem_pb_type, default_name,
646-
&mem_pb_type->modes[0].pb_type_children[0]);
644+
alloc_and_load_default_child_for_pb_type(mem_pb_type, default_name, &mem_pb_type->modes[0].pb_type_children[0]);
647645
mem_pb_type->modes[0].pb_type_children[0].depth = mem_pb_type->depth + 1;
648646
mem_pb_type->modes[0].pb_type_children[0].parent_mode = &mem_pb_type->modes[0];
649647
mem_pb_type->modes[0].pb_type_children[0].num_pb = num_pb;

0 commit comments

Comments
 (0)