From: Alberto Gonzalez Date: Mon, 30 Mar 2020 16:43:54 +0000 (+0000) Subject: Fix double deletion in `passes/hierarchy/hierarchy.cc`. X-Git-Tag: working-ls180~719^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4c92f9380c881075db5d05d080c5881e7022e7e4;p=yosys.git Fix double deletion in `passes/hierarchy/hierarchy.cc`. Co-Authored-By: Eddie Hung --- 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);