[llvm-commits] CVS: llvm/include/llvm/ADT/SmallVector.h

Evan Cheng evan.cheng at apple.com
Sat Aug 5 10:31:19 PDT 2006



Changes in directory llvm/include/llvm/ADT:

SmallVector.h updated: 1.3 -> 1.4
---
Log message:

This causes some random crashes.

---
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.3 llvm/include/llvm/ADT/SmallVector.h:1.4
--- llvm/include/llvm/ADT/SmallVector.h:1.3	Fri Jul 28 00:03:42 2006
+++ llvm/include/llvm/ADT/SmallVector.h	Sat Aug  5 12:31:00 2006
@@ -211,7 +211,7 @@
     
     Begin = NewElts;
     End = NewElts+CurSize;
-    Capacity = Begin+NewCapacity*2;
+    Capacity = Begin+NewCapacity;
   }
 };
 






More information about the llvm-commits mailing list