From 9d1597b086114d643a8c5db71fffa72ae8bb06f3 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Thu, 15 Feb 2007 20:14:06 +0000 Subject: [PATCH] Make sure Capacity gets initialized too. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34325 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/BitVector.h | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.34.1