OSDN Git Service

Make sure Capacity gets initialized too.
authorReid Spencer <rspencer@reidspencer.com>
Thu, 15 Feb 2007 20:14:06 +0000 (20:14 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Thu, 15 Feb 2007 20:14:06 +0000 (20:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34325 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/BitVector.h

index fb07689..39819ee 100644 (file)
@@ -78,6 +78,7 @@ public:
   BitVector(const BitVector &RHS) : Size(RHS.size()) {
     if (Size == 0) {
       Bits = NULL;
+      Capacity = 0;
       return;
     }