Build fixes for VS 2015
authorClifford Wolf <clifford@clifford.at>
Sun, 16 Oct 2016 18:37:02 +0000 (20:37 +0200)
committerClifford Wolf <clifford@clifford.at>
Sun, 16 Oct 2016 18:37:02 +0000 (20:37 +0200)
passes/techmap/attrmvcp.cc
passes/techmap/techmap.cc

index 50eaf61dff46262ece4450327d2dab9f64ce7965..1537def00d48a9263d6295f3069d1ab075515c75 100644 (file)
@@ -93,6 +93,7 @@ struct AttrmvcpPass : public Pass {
 
                        for (auto cell : module->selected_cells())
                        for (auto &conn : cell->connections())
+                       {
                                if (driven_mode) {
                                        if (cell->input(conn.first))
                                                for (auto bit : sigmap(conn.second))
@@ -102,6 +103,7 @@ struct AttrmvcpPass : public Pass {
                                                for (auto bit : sigmap(conn.second))
                                                        net2cells[bit].insert(cell);
                                }
+                       }
 
                        for (auto wire : module->selected_wires())
                        {
index 96b88eb422728d35996320d5ed65da573212fb9e..6784f48c3dd0501b04c93b7e8cbcf0fb8e480f76 100644 (file)
@@ -1170,8 +1170,9 @@ struct FlattenPass : public Pass {
                                worker.flatten_do_list.erase(mod->name);
                        }
                } else {
-                       for (auto mod : vector<Module*>(design->modules()))
+                       for (auto mod : vector<Module*>(design->modules())) {
                                while (worker.techmap_module(design, mod, design, handled_cells, celltypeMap, false)) { }
+                       }
                }
 
                log("No more expansions possible.\n");