kernel: Module::makeblackbox() to clear connections too
authorEddie Hung <eddie@fpgeh.com>
Tue, 14 Apr 2020 03:37:22 +0000 (20:37 -0700)
committerEddie Hung <eddie@fpgeh.com>
Tue, 14 Apr 2020 03:37:22 +0000 (20:37 -0700)
kernel/rtlil.cc

index d9003f28ce78faccfb53d609d938a608cbed0a46..dc368ead5021b20766c9df6ce831b21016436fce 100644 (file)
@@ -767,6 +767,8 @@ void RTLIL::Module::makeblackbox()
                delete it->second;
        processes.clear();
 
+       connections_.clear();
+
        remove(delwires);
        set_bool_attribute(ID::blackbox);
 }