mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-19 09:40:21 +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
|
@ -1777,7 +1777,7 @@ struct VerificSvaImporter
|
|||
if (mode_assert) c = module->addLive(root_name, sig_a_q, sig_en_q);
|
||||
if (mode_assume) c = module->addFair(root_name, sig_a_q, sig_en_q);
|
||||
|
||||
importer->import_attributes(c->attributes, root);
|
||||
if (c) importer->import_attributes(c->attributes, root);
|
||||
|
||||
return;
|
||||
}
|
||||
|
@ -1822,7 +1822,7 @@ struct VerificSvaImporter
|
|||
if (mode_assume) c = module->addAssume(root_name, sig_a_q, sig_en_q);
|
||||
if (mode_cover) c = module->addCover(root_name, sig_a_q, sig_en_q);
|
||||
|
||||
importer->import_attributes(c->attributes, root);
|
||||
if (c) importer->import_attributes(c->attributes, root);
|
||||
}
|
||||
}
|
||||
catch (ParserErrorException)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue