mirror of https://github.com/YosysHQ/yosys.git
Update passes/silimate/report_fanout.cc
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
parent
54bcc49987
commit
f8ea10d50c
|
|
@ -226,7 +226,11 @@ struct ReportFanoutPass : public Pass {
|
|||
for (argidx = 1; argidx < args.size(); argidx++)
|
||||
{
|
||||
if (args[argidx] == "-limit" && argidx + 1 < args.size()) {
|
||||
limit = std::stoi(args[++argidx]);
|
||||
try {
|
||||
limit = std::stoi(args[++argidx]);
|
||||
} catch (...) {
|
||||
log_cmd_error("Invalid value for -limit: '%s'. Expected an integer.\n", args[argidx].c_str());
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if (args[argidx] == "-file" && argidx + 1 < args.size()) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue