[llvm-commits] CVS: llvm/include/llvm/ADT/SmallSet.h
Chris Lattner
sabre at nondot.org
Mon Jan 22 21:00:14 PST 2007
Changes in directory llvm/include/llvm/ADT:
SmallSet.h updated: 1.2 -> 1.3
---
Log message:
fix typo
---
Diffs of the changes: (+1 -1)
SmallSet.h | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/include/llvm/ADT/SmallSet.h
diff -u llvm/include/llvm/ADT/SmallSet.h:1.2 llvm/include/llvm/ADT/SmallSet.h:1.3
--- llvm/include/llvm/ADT/SmallSet.h:1.2 Mon Jan 22 19:16:19 2007
+++ llvm/include/llvm/ADT/SmallSet.h Mon Jan 22 22:59:58 2007
@@ -57,7 +57,7 @@
/// 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);
More information about the llvm-commits
mailing list