From 83222193afbd70b753f627367b1b3867ba651687 Mon Sep 17 00:00:00 2001 From: Alberto Gonzalez Date: Thu, 9 Apr 2020 05:24:37 +0000 Subject: Clean up `passes/techmap/hilomap.cc`. --- passes/techmap/hilomap.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'passes/techmap') diff --git a/passes/techmap/hilomap.cc b/passes/techmap/hilomap.cc index 9ec651aef..5aeb5ea79 100644 --- a/passes/techmap/hilomap.cc +++ b/passes/techmap/hilomap.cc @@ -105,13 +105,9 @@ struct HilomapPass : public Pass { } extra_args(args, argidx, design); - for (auto &it : design->modules_) + for (auto mod : design->selected_modules()) { - module = it.second; - - if (!design->selected(module)) - continue; - + module = mod; last_hi = RTLIL::State::Sm; last_lo = RTLIL::State::Sm; -- cgit v1.2.3