mirror of
https://github.com/YosysHQ/yosys
synced 2025-05-06 07:15:48 +00:00
Design::selection_stack should never be empty
Add a `log_assert` for it in `Design::check()`. Remove unneeded checks in other places.
This commit is contained in:
parent
7eaf33e4da
commit
add5eba9b2
5 changed files with 15 additions and 19 deletions
|
@ -171,7 +171,6 @@ struct AigmapPass : public Pass {
|
|||
module->remove(cell);
|
||||
|
||||
if (select_mode) {
|
||||
log_assert(!design->selection_stack.empty());
|
||||
RTLIL::Selection& sel = design->selection();
|
||||
sel.selected_members[module->name] = std::move(new_sel);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue