summaryrefslogtreecommitdiffstats
path: root/llvm/include
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
commit47d7347858b20fe7ce4bd9d9da7db1a419098310 (patch)
tree15d2a0adc4b6bc1538480fc2cf0a54bd33a2e3a9 /llvm/include
parent6013cf9cbe9a18d06b70087bd0733a4c3bb858ee (diff)
downloadbcm5719-llvm-47d7347858b20fe7ce4bd9d9da7db1a419098310.tar.gz
bcm5719-llvm-47d7347858b20fe7ce4bd9d9da7db1a419098310.zip
Make DenseSet's erase pass on the return value rather than swallowing it.
llvm-svn: 95127
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/ADT/DenseSet.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/ADT/DenseSet.h b/llvm/include/llvm/ADT/DenseSet.h
index 89f55caa954..0898b968aca 100644
--- a/llvm/include/llvm/ADT/DenseSet.h
+++ b/llvm/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) {
OpenPOWER on IntegriCloud