mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Have DenseSet::insert return a bool indicating whether the insertion succeeded or not.
llvm-svn: 53033
This commit is contained in:
parent
5747d627e0
commit
dd29406f31
@ -41,8 +41,8 @@ public:
|
||||
return TheMap.count(V);
|
||||
}
|
||||
|
||||
void insert(const ValueT &V) {
|
||||
TheMap[V] = 0;
|
||||
bool insert(const ValueT &V) {
|
||||
return TheMap.insert(std::make_pair(V, 0));
|
||||
}
|
||||
|
||||
void erase(const ValueT &V) {
|
||||
|
Loading…
Reference in New Issue
Block a user