Hotfix for 4c82ddf
authorClifford Wolf <clifford@clifford.at>
Thu, 21 Feb 2019 18:27:23 +0000 (19:27 +0100)
committerClifford Wolf <clifford@clifford.at>
Thu, 21 Feb 2019 18:27:23 +0000 (19:27 +0100)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
passes/cmds/setundef.cc

index aea3165e49a857b3813b0ce3aad907251feb86e3..f6949c820c7db759b1280cf7f5e4c5216c698385 100644 (file)
@@ -238,20 +238,11 @@ struct SetundefPass : public Pass {
                {
                        if (params_mode)
                        {
-                               for (auto *cell : module->cells())
-                               {
-                                       // Only modify selected cells.
-                                       if (!design->selected(module, it)) {
-                                               continue;
-                                       }
-
-                                       for (auto &parameter : cell->parameters)
-                                       {
+                               for (auto *cell : module->selected_cells()) {
+                                       for (auto &parameter : cell->parameters) {
                                                for (auto &bit : parameter.second.bits) {
                                                        if (bit > RTLIL::State::S1)
-                                                       {
                                                                bit = worker.next_bit();
-                                                       }
                                                }
                                        }
                                }