submod: revert accidental change
authorEddie Hung <eddie@fpgeh.com>
Tue, 14 Apr 2020 15:53:07 +0000 (08:53 -0700)
committerEddie Hung <eddie@fpgeh.com>
Thu, 14 May 2020 17:33:56 +0000 (10:33 -0700)
passes/hierarchy/submod.cc

index 1f30a5160590c9b75f44022d444cd530fa99f679..2db7cf26b83d93f8d583ec00fcd4e708f2a66dcd 100644 (file)
@@ -389,7 +389,7 @@ struct SubmodPass : public Pass {
                        while (did_something) {
                                did_something = false;
                                std::vector<RTLIL::IdString> queued_modules;
-                               for (auto mod : design->selected_modules())
+                               for (auto mod : design->modules())
                                        if (handled_modules.count(mod->name) == 0 && design->selected_whole_module(mod->name))
                                                queued_modules.push_back(mod->name);
                                for (auto &modname : queued_modules)