mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
Make DenseSet's erase pass on the return value rather than swallowing it.
llvm-svn: 95127
This commit is contained in:
parent
c4096b6671
commit
612cbcdc1a
@ -41,8 +41,8 @@ public:
|
||||
return TheMap.count(V);
|
||||
}
|
||||
|
||||
void erase(const ValueT &V) {
|
||||
TheMap.erase(V);
|
||||
bool erase(const ValueT &V) {
|
||||
return TheMap.erase(V);
|
||||
}
|
||||
|
||||
DenseSet &operator=(const DenseSet &RHS) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user