Skip to content

Commit

Permalink
opt_clean: Assert an impossible path isn't taken
Browse files Browse the repository at this point in the history
  • Loading branch information
povik committed Jan 29, 2024
1 parent ec06518 commit 7afc069
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions passes/opt/opt_clean.cc
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,9 @@ bool rmunused_module_signals(RTLIL::Module *module, bool purge_mode, bool verbos
goto delete_this_wire;
} else
if (!used_signals.check_any(s2)) {
// this path shouldn't be possible: this wire is used directly (otherwise it would get cleaned up above), and indirectly
// used wires are a superset of those used directly
log_assert(false);
// delete wires that aren't used by anything indirectly, even though other wires may alias it
goto delete_this_wire;
}
Expand Down

0 comments on commit 7afc069

Please sign in to comment.