[llvm-commits] CVS: llvm/include/llvm/ADT/SmallVector.h
Chris Lattner
lattner at cs.uiuc.edu
Mon Aug 7 18:54:32 PDT 2006
Changes in directory llvm/include/llvm/ADT:
SmallVector.h updated: 1.8 -> 1.9
---
Log message:
capacity is a pointer, not a value
---
Diffs of the changes: (+1 -1)
SmallVector.h | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/include/llvm/ADT/SmallVector.h
diff -u llvm/include/llvm/ADT/SmallVector.h:1.8 llvm/include/llvm/ADT/SmallVector.h:1.9
--- llvm/include/llvm/ADT/SmallVector.h:1.8 Mon Aug 7 20:44:16 2006
+++ llvm/include/llvm/ADT/SmallVector.h Mon Aug 7 20:54:17 2006
@@ -148,7 +148,7 @@
void assign(unsigned NumElts, const T &Elt) {
clear();
- if (NumElts > Capacity)
+ if (Begin+NumElts > Capacity)
grow(NumElts);
End = Begin+NumElts;
for (; NumElts; --NumElts)
More information about the llvm-commits
mailing list