1
0
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:
Dan Gohman 2010-02-02 21:11:22 +00:00
parent c4096b6671
commit 612cbcdc1a

View File

@ -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) {