aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-01-23 04:59:58 +0000
committerChris Lattner <sabre@nondot.org>2007-01-23 04:59:58 +0000
commitc9708122836670953b7f7b3a86cc263b63fe3e3e (patch)
tree98607ecb111adfb6b04817328c30f2bfbd2e1932
parent182907645c9c2da22dba78255f0c8541f5d9f50d (diff)
fix typo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33459 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/ADT/SmallSet.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/SmallSet.h b/include/llvm/ADT/SmallSet.h
index dd1081e388..f0481fcef3 100644
--- a/include/llvm/ADT/SmallSet.h
+++ b/include/llvm/ADT/SmallSet.h
@@ -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);