abc9: Use push_empty_selection()

This commit is contained in:
Krystine Sherwin 2024-11-20 11:29:22 +13:00
parent 453e9f0a23
commit 24e54d942a
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -391,7 +391,7 @@ struct Abc9Pass : public ScriptPass
}
else {
auto selected_modules = active_design->selected_modules();
active_design->selection_stack.emplace_back(false);
active_design->push_empty_selection();
for (auto mod : selected_modules) {
if (mod->processes.size() > 0) {
@ -402,6 +402,7 @@ struct Abc9Pass : public ScriptPass
log_push();
active_design->select(mod);
// this check does nothing because the above line adds the whole module to the selection
if (!active_design->selected_whole_module(mod))
log_error("Can't handle partially selected module %s!\n", log_id(mod));