Changed from "and" to "&&"
authorWilliam Speirs <bill.speirs@gmail.com>
Tue, 14 Oct 2014 21:15:35 +0000 (17:15 -0400)
committerClifford Wolf <clifford@clifford.at>
Tue, 14 Oct 2014 22:59:22 +0000 (00:59 +0200)
passes/fsm/fsm_opt.cc

index 6685e8e0e98b21f365a7dfc294961fb2a8c8d4e1..4b93d79f92d3406036bc7dc50ec3bfaf4f58a2b4 100644 (file)
@@ -342,7 +342,7 @@ struct FsmOptPass : public Pass {
                for (auto &mod_it : design->modules_) {
                        if (design->selected(mod_it.second))
                                for (auto &cell_it : mod_it.second->cells_)
-                                       if (cell_it.second->type == "$fsm" and design->selected(mod_it.second, cell_it.second))
+                                       if (cell_it.second->type == "$fsm" && design->selected(mod_it.second, cell_it.second))
                                                FsmData::optimize_fsm(cell_it.second, mod_it.second);
                }
        }