From: Eddie Hung Date: Tue, 14 Apr 2020 03:37:22 +0000 (-0700) Subject: kernel: Module::makeblackbox() to clear connections too X-Git-Tag: working-ls180~639^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9547d8c13eb8279d383f0efcf0ad33a54469b878;p=yosys.git kernel: Module::makeblackbox() to clear connections too --- diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc index d9003f28c..dc368ead5 100644 --- a/kernel/rtlil.cc +++ b/kernel/rtlil.cc @@ -767,6 +767,8 @@ void RTLIL::Module::makeblackbox() delete it->second; processes.clear(); + connections_.clear(); + remove(delwires); set_bool_attribute(ID::blackbox); }