preserve wire attributes in iopadmap
authorClifford Wolf <clifford@clifford.at>
Sat, 6 Aug 2016 11:24:59 +0000 (13:24 +0200)
committerClifford Wolf <clifford@clifford.at>
Sat, 6 Aug 2016 11:24:59 +0000 (13:24 +0200)
passes/techmap/iopadmap.cc

index 4acbf7c0ddb73e96b1bc1983ba61589da9936263..15ad51c8770dae0b3d970877bc9dad0312c5e57a 100644 (file)
@@ -312,7 +312,7 @@ struct IopadmapPass : public Pass {
                                if (!portname2.empty()) {
                                        new_wire = module->addWire(NEW_ID, wire);
                                        module->swap_names(new_wire, wire);
-                                       wire->attributes.clear();
+                                       new_wire->attributes.swap(wire->attributes);
                                }
 
                                if (flag_bits)