From: Reid Spencer Date: Thu, 15 Feb 2007 20:14:06 +0000 (+0000) Subject: Make sure Capacity gets initialized too. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=9d1597b086114d643a8c5db71fffa72ae8bb06f3;p=oota-llvm.git Make sure Capacity gets initialized too. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34325 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/BitVector.h b/include/llvm/ADT/BitVector.h index fb0768979f4..39819ee5c82 100644 --- a/include/llvm/ADT/BitVector.h +++ b/include/llvm/ADT/BitVector.h @@ -78,6 +78,7 @@ public: BitVector(const BitVector &RHS) : Size(RHS.size()) { if (Size == 0) { Bits = NULL; + Capacity = 0; return; }