Fixed bug in opt_clean

This commit is contained in:
Clifford Wolf 2014-07-27 15:13:29 +02:00
parent d07a871d35
commit 77a1462f2d
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ static void rmunused_module_signals(RTLIL::Module *module, bool purge_mode, bool
for (int i = 0; i < SIZE(sig); i++) { for (int i = 0; i < SIZE(sig); i++) {
if (sig[i].wire == NULL) if (sig[i].wire == NULL)
continue; continue;
if (!used_signals_nodrivers.check_any(sig)) { if (!used_signals_nodrivers.check_any(sig[i])) {
if (!unused_bits.empty()) if (!unused_bits.empty())
unused_bits += " "; unused_bits += " ";
unused_bits += stringf("%zd", i); unused_bits += stringf("%zd", i);