From: Evan Cheng Date: Sat, 5 Aug 2006 17:31:00 +0000 (+0000) Subject: This causes some random crashes. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=e6ffe61c8455e4b343584c5fab88eb5774916356;p=oota-llvm.git This causes some random crashes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29534 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/SmallVector.h b/include/llvm/ADT/SmallVector.h index 6f031a82e43..9b760949e95 100644 --- a/include/llvm/ADT/SmallVector.h +++ b/include/llvm/ADT/SmallVector.h @@ -211,7 +211,7 @@ private: Begin = NewElts; End = NewElts+CurSize; - Capacity = Begin+NewCapacity*2; + Capacity = Begin+NewCapacity; } };