Skip to content

Commit b99f831

Browse files
committed
Fix AbcModuleState::remap_name() to avoid calling IdString::c_str()
1 parent ec04156 commit b99f831

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

passes/techmap/abc.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ std::string AbcModuleState::remap_name(RTLIL::IdString abc_name, RTLIL::Wire **o
614614
}
615615
}
616616
}
617-
return stringf("$abc$%d$%s", map_autoidx, abc_name.c_str()+1);
617+
return stringf("$abc$%d$%s", map_autoidx, abc_name.substr(1));
618618
}
619619

620620
void AbcModuleState::dump_loop_graph(FILE *f, int &nr, dict<int, pool<int>> &edges, pool<int> &workpool, std::vector<int> &in_counts)

0 commit comments

Comments
 (0)