mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-06 03:10:26 +00:00
Fixes for some of clang scan-build detected issues
This commit is contained in:
parent
956c4e485a
commit
6574553189
15 changed files with 39 additions and 23 deletions
|
@ -1238,6 +1238,9 @@ struct FirrtlBackend : public Backend {
|
|||
if (top == nullptr)
|
||||
top = last;
|
||||
|
||||
if (!top)
|
||||
log_cmd_error("There is no top module in this design!\n");
|
||||
|
||||
std::string circuitFileinfo = getFileinfo(top);
|
||||
*f << stringf("circuit %s: %s\n", make_id(top->name), circuitFileinfo.c_str());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue