mirror of
https://github.com/YosysHQ/yosys
synced 2026-07-16 20:25:43 +00:00
compiles
This commit is contained in:
parent
0018037c16
commit
269b70c0f9
1 changed files with 3 additions and 2 deletions
|
|
@ -116,11 +116,12 @@ struct RegRenamePass : public Pass {
|
|||
if (isMultiBit) {
|
||||
|
||||
// Index of the register
|
||||
int index = 0;
|
||||
try {
|
||||
int index = std::stoi(match[2].str());
|
||||
index = std::stoi(match[2].str());
|
||||
} catch (const std::exception &e) {
|
||||
log_warning("Failed to convert index %s to integer in register %s: %s\n",
|
||||
match[2].str().c_str(), cell->name.c_str(), e.what());
|
||||
match[2].str().c_str(), log_id(cell), e.what());
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue