[llvm-commits] CVS: llvm/include/llvm/Analysis/ET-Forest.h

Chris Lattner lattner at cs.uiuc.edu
Sun Jan 15 13:48:47 PST 2006



Changes in directory llvm/include/llvm/Analysis:

ET-Forest.h updated: 1.3 -> 1.4
---
Log message:

Initialize DFSnum's to -1, in case a node is not reachable.


---
Diffs of the changes:  (+3 -2)

 ET-Forest.h |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


Index: llvm/include/llvm/Analysis/ET-Forest.h
diff -u llvm/include/llvm/Analysis/ET-Forest.h:1.3 llvm/include/llvm/Analysis/ET-Forest.h:1.4
--- llvm/include/llvm/Analysis/ET-Forest.h:1.3	Sun Jan 15 15:46:23 2006
+++ llvm/include/llvm/Analysis/ET-Forest.h	Sun Jan 15 15:48:36 2006
@@ -130,7 +130,8 @@
 
 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 @@
   void *data;
 
   // DFS Numbers
-  unsigned DFSNumIn, DFSNumOut;
+  int DFSNumIn, DFSNumOut;
 
   // Father
   ETNode *Father;






More information about the llvm-commits mailing list