projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebdcbc2
)
Make DenseSet's erase pass on the return value rather than swallowing it.
author
Dan Gohman
<gohman@apple.com>
Tue, 2 Feb 2010 21:11:22 +0000
(21:11 +0000)
committer
Dan Gohman
<gohman@apple.com>
Tue, 2 Feb 2010 21:11:22 +0000
(21:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95127
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/DenseSet.h
patch
|
blob
|
history
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) {