mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-07 14:43:23 +00:00
Fix double deletion in passes/hierarchy/hierarchy.cc
.
Co-Authored-By: Eddie Hung <eddie@fpgeh.com>
This commit is contained in:
parent
b88faceced
commit
4c92f9380c
1 changed files with 0 additions and 1 deletions
|
@ -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());
|
log("Removing unused module `%s'.\n", mod->name.c_str());
|
||||||
design->remove(mod);
|
design->remove(mod);
|
||||||
del_counter++;
|
del_counter++;
|
||||||
delete mod;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
log("Removed %d unused modules.\n", del_counter);
|
log("Removed %d unused modules.\n", del_counter);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue