Various bugfixes

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33848 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2007-02-04 00:12:12 +00:00
parent edca3c5a1e
commit 7235928b45

View File

@ -78,7 +78,7 @@ public:
bool erase(const T &V) {
if (!isSmall())
return Set.erase(V).second;
return Set.erase(V);
for (mutable_iterator I = Vector.begin(), E = Vector.end(); I != E; ++I)
if (*I == V) {
Vector.erase(I);