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:
parent
0ae77ee391
commit
153ccbe7f9
@ -56,7 +56,7 @@ bool SmallPtrSetImpl::erase(void *Ptr) {
|
||||
// Clear the end element.
|
||||
E[-1] = getEmptyMarker();
|
||||
--NumElements;
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user