Fix double deletion in `passes/hierarchy/hierarchy.cc`.
authorAlberto Gonzalez <boqwxp@airmail.cc>
Mon, 30 Mar 2020 16:43:54 +0000 (16:43 +0000)
committerAlberto Gonzalez <boqwxp@airmail.cc>
Mon, 30 Mar 2020 16:43:54 +0000 (16:43 +0000)
Co-Authored-By: Eddie Hung <eddie@fpgeh.com>
passes/hierarchy/hierarchy.cc

index 7719f9824c6dac7a6eeb2b454f5e2d97e1b6148b..3f4fe502de9a36ca77ba9205f244563b258c55a6 100644 (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);