projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make DenseSet's erase pass on the return value rather than swallowing it.
[oota-llvm.git]
/
include
/
llvm
/
ADT
/
DenseSet.h
diff --git
a/include/llvm/ADT/DenseSet.h
b/include/llvm/ADT/DenseSet.h
index 89f55caa95475c64c054bc1f9cd7bd49af4cfc0e..0898b968aca9101524b770ec44199ff35ec88ef9 100644
(file)
--- 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) {