Initialize DFSnum's to -1, in case a node is not reachable.
authorChris Lattner <sabre@nondot.org>
Sun, 15 Jan 2006 21:48:36 +0000 (21:48 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 15 Jan 2006 21:48:36 +0000 (21:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25344 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/ET-Forest.h

index 5607d52ec54b13a99eb4d7b789c87eab90dac4a3..b05776a9e0f1b3aaccf24d200e7abd69839c5e28 100644 (file)
@@ -130,7 +130,8 @@ public:
 
 class ETNode {
 public:
-  ETNode(void *d) : data(d), Father(NULL), Left(NULL),
+  ETNode(void *d) : data(d), DFSNumIn(-1), DFSNumOut(-1),
+                    Father(NULL), Left(NULL),
                     Right(NULL), Son(NULL), ParentOcc(NULL) {   
     RightmostOcc = new ETOccurrence(this);
   };
@@ -287,7 +288,7 @@ public:
   void *data;
 
   // DFS Numbers
-  unsigned DFSNumIn, DFSNumOut;
+  int DFSNumIn, DFSNumOut;
 
   // Father
   ETNode *Father;