3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-07 01:54:10 +00:00

Fix double deletion in passes/hierarchy/hierarchy.cc.

Co-Authored-By: Eddie Hung <eddie@fpgeh.com>
This commit is contained in:
Alberto Gonzalez 2020-03-30 16:43:54 +00:00
parent b88faceced
commit 4c92f9380c
No known key found for this signature in database
GPG key ID: 8395A8BA109708B2

View file

@ -492,7 +492,6 @@ void hierarchy_clean(RTLIL::Design *design, RTLIL::Module *top, bool purge_lib)
log("Removing unused module `%s'.\n", mod->name.c_str());
design->remove(mod);
del_counter++;
delete mod;
}
log("Removed %d unused modules.\n", del_counter);