mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
fix typo
llvm-svn: 33459
This commit is contained in:
parent
213c43eaed
commit
14958b0a08
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user