submod: revert accidental change

This commit is contained in:
Eddie Hung 2020-04-14 08:53:07 -07:00
parent b66904e9cd
commit 509de98468
1 changed files with 1 additions and 1 deletions

View 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)