1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 13:11:39 +01:00

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 0ae77ee391
commit 153ccbe7f9

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;