projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfcb936
)
Use `emplace()` rather than `insert()`.
author
Alberto Gonzalez
<boqwxp@airmail.cc>
Mon, 20 Apr 2020 04:42:19 +0000
(
04:42
+0000)
committer
Alberto Gonzalez
<boqwxp@airmail.cc>
Thu, 14 May 2020 20:06:54 +0000
(20:06 +0000)
passes/techmap/techmap.cc
patch
|
blob
|
history
diff --git
a/passes/techmap/techmap.cc
b/passes/techmap/techmap.cc
index 548a80b01795e7a5718d24c19203567db6438402..17d98847ebbc3b039be127ce799f7e27d8669141 100644
(file)
--- 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))) &&