]> granicus.if.org Git - clang/commitdiff
fix more uninit ivars, who wrote this junk? :)
authorChris Lattner <sabre@nondot.org>
Mon, 14 Apr 2008 20:07:03 +0000 (20:07 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 14 Apr 2008 20:07:03 +0000 (20:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49679 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Rewrite/RewriteRope.cpp

index 2b9ff55e7d69c29c195a224af640e86d60426dc3..8a082edba6353b7190d590bc1f64ec593c677e58 100644 (file)
@@ -102,7 +102,7 @@ namespace {
     /// efficient in-order forward iteration of the tree without traversal.
     const RopePieceBTreeLeaf *NextLeaf;
   public:
-    RopePieceBTreeLeaf() : RopePieceBTreeNode(true), NextLeaf(0) {}
+    RopePieceBTreeLeaf() : RopePieceBTreeNode(true), NumPieces(0), NextLeaf(0){}
     
     bool isFull() const { return NumPieces == 2*WidthFactor; }
     
@@ -324,7 +324,7 @@ namespace {
     unsigned char NumChildren;
     RopePieceBTreeNode *Children[2*WidthFactor];
   public:
-    RopePieceBTreeInterior() : RopePieceBTreeNode(false) {}
+    RopePieceBTreeInterior() : RopePieceBTreeNode(false), NumChildren(0) {}
     
     RopePieceBTreeInterior(RopePieceBTreeNode *LHS, RopePieceBTreeNode *RHS)
     : RopePieceBTreeNode(false) {