Skip to content

Commit 1dff85b

Browse files
fix duplicate port name error
1 parent b7c4fe7 commit 1dff85b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/libarchfpga/src/read_xml_arch_file.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1845,7 +1845,7 @@ static void ProcessMode(pugi::xml_node Parent,
18451845
ProcessPb_Type(Cur, &mode->pb_type_children[pb_type_child_idx], mode, timing_enabled, arch, loc_data, parent_pb_idx);
18461846

18471847
auto [_, success] = pb_type_names.insert(mode->pb_type_children[pb_type_child_idx].name);
1848-
if (success) {
1848+
if (!success) {
18491849
archfpga_throw(loc_data.filename_c_str(), loc_data.line(Cur),
18501850
"Duplicate pb_type name: '%s' in mode: '%s'.\n",
18511851
mode->pb_type_children[pb_type_child_idx].name, mode->name);

0 commit comments

Comments
 (0)