diff --git a/include/llvm/ADT/SmallSet.h b/include/llvm/ADT/SmallSet.h index 64eb5814ab9..30e8ee544fe 100644 --- a/include/llvm/ADT/SmallSet.h +++ b/include/llvm/ADT/SmallSet.h @@ -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);