This causes some random crashes.
authorEvan Cheng <evan.cheng@apple.com>
Sat, 5 Aug 2006 17:31:00 +0000 (17:31 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Sat, 5 Aug 2006 17:31:00 +0000 (17:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29534 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/SmallVector.h

index 6f031a82e438060fe838ba0ed3960b54d6899dd2..9b760949e9566068a80b2382b18c2869b1861121 100644 (file)
@@ -211,7 +211,7 @@ private:
     
     Begin = NewElts;
     End = NewElts+CurSize;
-    Capacity = Begin+NewCapacity*2;
+    Capacity = Begin+NewCapacity;
   }
 };