mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 18:13:50 +02:00
Internals: Use emplace instead of insert(make_pair(...)). No functional change intended.
This commit is contained in:
+1
-1
@@ -912,7 +912,7 @@ private:
|
||||
// as it's legal for the user to attach multiple tasks to one dpi cname
|
||||
const auto iter = m_dpiNames.find(nodep->cname());
|
||||
if (iter == m_dpiNames.end()) {
|
||||
m_dpiNames.insert(make_pair(nodep->cname(), make_pair(nodep, dpiproto)));
|
||||
m_dpiNames.emplace(nodep->cname(), make_pair(nodep, dpiproto));
|
||||
return false;
|
||||
} else if (iter->second.second != dpiproto) {
|
||||
nodep->v3error(
|
||||
|
||||
Reference in New Issue
Block a user