3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-11-07 06:46:06 +00:00

Store IdString lengths and use them

This commit is contained in:
Robert O'Callahan 2025-08-20 03:47:03 +00:00
parent ae219cb8f9
commit d70924ace2
3 changed files with 38 additions and 28 deletions

View file

@ -587,7 +587,7 @@ void format_emit_idstring(std::string &result, std::string_view spec, int *dynam
{
if (spec == "%s") {
// Format checking will have guaranteed num_dynamic_ints == 0.
result += arg.c_str();
result += arg.str_view();
return;
}
format_emit_stringf(result, spec, dynamic_ints, num_dynamic_ints, arg.c_str());