mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-05 13:56:04 +00:00
Make NEW_ID create IDs whose string allocation is delayed
This commit is contained in:
parent
442a969812
commit
2075b3416f
7 changed files with 165 additions and 70 deletions
|
|
@ -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.str_view();
|
||||
arg.append_to(&result);
|
||||
return;
|
||||
}
|
||||
format_emit_stringf(result, spec, dynamic_ints, num_dynamic_ints, arg.c_str());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue