mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-11 04:01:28 +00:00
Merge pull request #5304 from rocallahan/idstring-stringf
Support `IdString` parameters in `stringf()` and remove `.c_str()` in a lot of places
This commit is contained in:
commit
c468ee7add
92 changed files with 807 additions and 775 deletions
|
@ -323,7 +323,7 @@
|
|||
|
||||
// create a unique name for the genvar
|
||||
std::string old_str = decl->str;
|
||||
std::string new_str = stringf("$genfordecl$%d$%s", autoidx++, old_str.c_str());
|
||||
std::string new_str = stringf("$genfordecl$%d$%s", autoidx++, old_str);
|
||||
|
||||
// rename and move the genvar declaration to the containing description
|
||||
decl->str = new_str;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue