aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlberto Gonzalez <boqwxp@airmail.cc>2020-04-20 04:42:19 +0000
committerAlberto Gonzalez <boqwxp@airmail.cc>2020-05-14 20:06:54 +0000
commit62946218255eaea385fc62802c881bff256157fb (patch)
tree849746ab051c91d72934ce321a4cd1fc41854033
parentdfcb936cd565411eb488152213945c7896a980db (diff)
downloadyosys-62946218255eaea385fc62802c881bff256157fb.tar.gz
yosys-62946218255eaea385fc62802c881bff256157fb.tar.bz2
yosys-62946218255eaea385fc62802c881bff256157fb.zip
Use `emplace()` rather than `insert()`.
-rw-r--r--passes/techmap/techmap.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/passes/techmap/techmap.cc b/passes/techmap/techmap.cc
index 548a80b01..17d98847e 100644
--- a/passes/techmap/techmap.cc
+++ b/passes/techmap/techmap.cc
@@ -213,7 +213,7 @@ struct TechmapWorker
if (tpl_w->port_id > 0)
{
IdString posportname = stringf("$%d", tpl_w->port_id);
- positional_ports[posportname] = tpl_w->name;
+ positional_ports.emplace(posportname, tpl_w->name);
if (!flatten_mode && tpl_w->get_bool_attribute(ID::techmap_autopurge) &&
(!cell->hasPort(tpl_w->name) || !GetSize(cell->getPort(tpl_w->name))) &&