mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-02 16:56:50 +00:00
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:
parent
fc7d13d898
commit
7ef856dfad
@ -56,7 +56,7 @@ bool SmallPtrSetImpl::erase(void *Ptr) {
|
||||
// Clear the end element.
|
||||
E[-1] = getEmptyMarker();
|
||||
--NumElements;
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user