mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-27 15:41:46 +00:00
[VirtualFileSystem] Use std::map::emplace
This commit is contained in:
parent
0318123f67
commit
c51c607dfc
@ -749,8 +749,7 @@ public:
|
||||
}
|
||||
|
||||
InMemoryNode *addChild(StringRef Name, std::unique_ptr<InMemoryNode> Child) {
|
||||
return Entries.insert(make_pair(Name.str(), std::move(Child)))
|
||||
.first->second.get();
|
||||
return Entries.emplace(Name, std::move(Child)).first->second.get();
|
||||
}
|
||||
|
||||
using const_iterator = decltype(Entries)::const_iterator;
|
||||
|
Loading…
Reference in New Issue
Block a user