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
This commit is contained in:
Chris Lattner 2007-02-05 23:10:31 +00:00
parent fc7d13d898
commit 7ef856dfad

View File

@ -56,7 +56,7 @@ bool SmallPtrSetImpl::erase(void *Ptr) {
// Clear the end element.
E[-1] = getEmptyMarker();
--NumElements;
return false;
return true;
}
return false;