From 24e54d942a7f41c4917cb27ade0c012a1d8dba7d Mon Sep 17 00:00:00 2001 From: Krystine Sherwin <93062060+KrystalDelusion@users.noreply.github.com> Date: Wed, 20 Nov 2024 11:29:22 +1300 Subject: [PATCH] abc9: Use push_empty_selection() --- passes/techmap/abc9.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/passes/techmap/abc9.cc b/passes/techmap/abc9.cc index 56fa4b011..1313fbd73 100644 --- a/passes/techmap/abc9.cc +++ b/passes/techmap/abc9.cc @@ -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));