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 | 7ef856dfad10615cac37eb0eb7932cd1fbdcf9e8 (patch) | |
tree | 48bd61bfb7140a76d5053437903e4a08d980ff05 /lib/Support/SmallPtrSet.cpp | |
parent | fc7d13d898b622ae6a02c71b3a30eebd53cf202b (diff) |
Fix a bug in smallptrset::erase: in the small case, return true if the
element was in the set.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33931 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/SmallPtrSet.cpp')
-rw-r--r-- | lib/Support/SmallPtrSet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/SmallPtrSet.cpp b/lib/Support/SmallPtrSet.cpp index 1eea7272e0..758a952ae4 100644 --- a/lib/Support/SmallPtrSet.cpp +++ b/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; |