1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00
llvm-svn: 33459
This commit is contained in:
Chris Lattner 2007-01-23 04:59:58 +00:00
parent 213c43eaed
commit 14958b0a08

View File

@ -57,7 +57,7 @@ public:
/// insert - Insert an element into the set if it isn't already there.
std::pair<iterator,bool> insert(const T &V) {
iterator I = find(V);
if (I == end()) // Don't reinsert if it already exists.
if (I != end()) // Don't reinsert if it already exists.
return std::make_pair(I, false);
Vector.push_back(V);
return std::make_pair(end()-1, true);