[cfe-commits] r49678 - /cfe/trunk/lib/Rewrite/RewriteRope.cpp

Chris Lattner sabre at nondot.org
Mon Apr 14 13:05:41 PDT 2008


Author: lattner
Date: Mon Apr 14 15:05:32 2008
New Revision: 49678

URL: http://llvm.org/viewvc/llvm-project?rev=49678&view=rev
Log:
Fix an assertion ted was hitting, due to an uninitialized variable.

Modified:
    cfe/trunk/lib/Rewrite/RewriteRope.cpp

Modified: cfe/trunk/lib/Rewrite/RewriteRope.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Rewrite/RewriteRope.cpp?rev=49678&r1=49677&r2=49678&view=diff

==============================================================================
--- cfe/trunk/lib/Rewrite/RewriteRope.cpp (original)
+++ cfe/trunk/lib/Rewrite/RewriteRope.cpp Mon Apr 14 15:05:32 2008
@@ -53,7 +53,7 @@
     /// is an instance of RopePieceBTreeInterior.
     bool IsLeaf;
     
-    RopePieceBTreeNode(bool isLeaf) : IsLeaf(isLeaf) {}
+    RopePieceBTreeNode(bool isLeaf) : Size(0), IsLeaf(isLeaf) {}
     ~RopePieceBTreeNode() {}
   public:
     





More information about the cfe-commits mailing list