aboutsummaryrefslogtreecommitdiffstats
path: root/passes/hierarchy
diff options
context:
space:
mode:
authorAlberto Gonzalez <boqwxp@airmail.cc>2020-03-30 16:43:54 +0000
committerAlberto Gonzalez <boqwxp@airmail.cc>2020-03-30 16:43:54 +0000
commit4c92f9380c881075db5d05d080c5881e7022e7e4 (patch)
tree6f907c9fa87c382e5b51e21a34f02c519dad797b /passes/hierarchy
parentb88faceced97747a68ed49970e09da75ad825d03 (diff)
downloadyosys-4c92f9380c881075db5d05d080c5881e7022e7e4.tar.gz
yosys-4c92f9380c881075db5d05d080c5881e7022e7e4.tar.bz2
yosys-4c92f9380c881075db5d05d080c5881e7022e7e4.zip
Fix double deletion in `passes/hierarchy/hierarchy.cc`.
Co-Authored-By: Eddie Hung <eddie@fpgeh.com>
Diffstat (limited to 'passes/hierarchy')
-rw-r--r--passes/hierarchy/hierarchy.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/passes/hierarchy/hierarchy.cc b/passes/hierarchy/hierarchy.cc
index 7719f9824..3f4fe502d 100644
--- a/passes/hierarchy/hierarchy.cc
+++ b/passes/hierarchy/hierarchy.cc
@@ -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);