diff options
author | Chris Lattner <sabre@nondot.org> | 2007-02-05 23:10:31 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-02-05 23:10:31 +0000 |
commit | 92c5d1185fb8381b161fef6c2b7e54f854d3723a (patch) | |
tree | 9b7bb4ec96680b02d52ee03e0734f7e8ef7e2681 /llvm/lib | |
parent | 606dde00930931087bd4a076f2e56fffcddaa30d (diff) | |
download | bcm5719-llvm-92c5d1185fb8381b161fef6c2b7e54f854d3723a.tar.gz bcm5719-llvm-92c5d1185fb8381b161fef6c2b7e54f854d3723a.zip |
Fix a bug in smallptrset::erase: in the small case, return true if the
element was in the set.
llvm-svn: 33931
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Support/SmallPtrSet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/SmallPtrSet.cpp b/llvm/lib/Support/SmallPtrSet.cpp index 1eea7272e01..758a952ae42 100644 --- a/llvm/lib/Support/SmallPtrSet.cpp +++ b/llvm/lib/Support/SmallPtrSet.cpp @@ -56,7 +56,7 @@ bool SmallPtrSetImpl::erase(void *Ptr) { // Clear the end element. E[-1] = getEmptyMarker(); --NumElements; - return false; + return true; } return false; |