[llvm-commits] CVS: llvm/lib/Support/SmallPtrSet.cpp
Chris Lattner
sabre at nondot.org
Mon Feb 5 15:10:57 PST 2007
Changes in directory llvm/lib/Support:
SmallPtrSet.cpp updated: 1.3 -> 1.4
---
Log message:
Fix a bug in smallptrset::erase: in the small case, return true if the
element was in the set.
---
Diffs of the changes: (+1 -1)
SmallPtrSet.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Support/SmallPtrSet.cpp
diff -u llvm/lib/Support/SmallPtrSet.cpp:1.3 llvm/lib/Support/SmallPtrSet.cpp:1.4
--- llvm/lib/Support/SmallPtrSet.cpp:1.3 Sat Jan 27 01:59:10 2007
+++ llvm/lib/Support/SmallPtrSet.cpp Mon Feb 5 17:10:31 2007
@@ -56,7 +56,7 @@
// Clear the end element.
E[-1] = getEmptyMarker();
--NumElements;
- return false;
+ return true;
}
return false;
More information about the llvm-commits
mailing list