diff options
author | Chris Lattner <sabre@nondot.org> | 2007-01-23 04:59:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-01-23 04:59:58 +0000 |
commit | c4d201ea9a7bacef3833ff654d89130bd47b1855 (patch) | |
tree | 6a1c92a900af76112a47d894608ef8b0d27206d3 | |
parent | d9522bc2d00294dfeb247a5e414687c3da88590a (diff) | |
download | bcm5719-llvm-c4d201ea9a7bacef3833ff654d89130bd47b1855.tar.gz bcm5719-llvm-c4d201ea9a7bacef3833ff654d89130bd47b1855.zip |
fix typo
llvm-svn: 33459
-rw-r--r-- | llvm/include/llvm/ADT/SmallSet.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/ADT/SmallSet.h b/llvm/include/llvm/ADT/SmallSet.h index dd1081e3889..f0481fcef33 100644 --- a/llvm/include/llvm/ADT/SmallSet.h +++ b/llvm/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); |