fix typo
authorChris Lattner <sabre@nondot.org>
Tue, 23 Jan 2007 04:59:58 +0000 (04:59 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 23 Jan 2007 04:59:58 +0000 (04:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33459 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/SmallSet.h

index dd1081e3889ed177f18c05dbeca4812939478c5b..f0481fcef335aef5e6e7ca5f25510bd8a77ae95a 100644 (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);