Fix a bug in smallptrset::erase: in the small case, return true if the

element was in the set.

llvm-svn: 33931
This commit is contained in:
Chris Lattner 2007-02-05 23:10:31 +00:00
parent 606dde0093
commit 92c5d1185f
1 changed files with 1 additions and 1 deletions

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;