From 4c92f9380c881075db5d05d080c5881e7022e7e4 Mon Sep 17 00:00:00 2001 From: Alberto Gonzalez Date: Mon, 30 Mar 2020 16:43:54 +0000 Subject: [PATCH] Fix double deletion in `passes/hierarchy/hierarchy.cc`. Co-Authored-By: Eddie Hung --- passes/hierarchy/hierarchy.cc | 1 - 1 file changed, 1 deletion(-) 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); -- 2.30.2