Copy not move parameters/attributes
authorEddie Hung <eddie@fpgeh.com>
Mon, 17 Jun 2019 20:19:45 +0000 (13:19 -0700)
committerEddie Hung <eddie@fpgeh.com>
Mon, 17 Jun 2019 20:19:45 +0000 (13:19 -0700)
passes/techmap/abc9.cc

index 9c4e6bb39846e644e8bb99a766deaea918c17e4a..184fbfaee0583badda7184b385954ff8ef89ecaa 100644 (file)
@@ -599,11 +599,12 @@ void abc9_module(RTLIL::Design *design, RTLIL::Module *current_module, std::stri
                        if (markgroups) cell->attributes["\\abcgroup"] = map_autoidx;
                         RTLIL::Cell *existing_cell = module->cell(c->name);
                         if (existing_cell) {
-                                cell->parameters = std::move(existing_cell->parameters);
-                                cell->attributes = std::move(existing_cell->attributes);
+                                cell->parameters = existing_cell->parameters;
+                                cell->attributes = existing_cell->attributes;
                         }
                         else {
-                                cell->parameters = std::move(c->parameters);
+                                cell->parameters = c->parameters;
+                                cell->attributes = c->attributes;
                         }
                        for (auto &conn : c->connections()) {
                                RTLIL::SigSpec newsig;