aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-02-02 21:11:22 +0000
committerDan Gohman <gohman@apple.com>2010-02-02 21:11:22 +0000
commit00f488012c6c44bc6ee35a3078a0063e10f152e3 (patch)
tree0d62eec7bcf6667c2e3c52f3338371361d7dc6c7
parentebdcbc26c77b97483afbcb906f988cc66d43606d (diff)
Make DenseSet's erase pass on the return value rather than swallowing it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95127 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/ADT/DenseSet.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/ADT/DenseSet.h b/include/llvm/ADT/DenseSet.h
index 89f55caa95..0898b968ac 100644
--- a/include/llvm/ADT/DenseSet.h
+++ b/include/llvm/ADT/DenseSet.h
@@ -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) {