3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-10-30 03:02:30 +00:00

Merge pull request #3629 from YosysHQ/micko/clang_fixes

Fixes for some of clang scan-build detected issues
This commit is contained in:
Miodrag Milanović 2023-01-23 16:24:22 +01:00 committed by GitHub
commit 245884a101
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 39 additions and 23 deletions

View file

@ -393,6 +393,7 @@ struct BugpointPass : public Pass {
}
}
}
delete design_copy;
return nullptr;
}

View file

@ -118,6 +118,9 @@ struct DesignPass : public Pass {
std::string save_name, load_name, as_name, delete_name;
std::vector<RTLIL::Module*> copy_src_modules;
if (!design)
log_cmd_error("No default design.\n");
size_t argidx;
for (argidx = 1; argidx < args.size(); argidx++)
{
@ -280,7 +283,7 @@ struct DesignPass : public Pass {
done[mod->name] = prefix;
}
while (!queue.empty())
while (!queue.empty() && copy_from_design)
{
pool<Module*> old_queue;
old_queue.swap(queue);