From: Chris Lattner Date: Sun, 15 Jan 2006 21:48:36 +0000 (+0000) Subject: Initialize DFSnum's to -1, in case a node is not reachable. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=801af7376e360516d15e8d02316217416f86eae6;p=oota-llvm.git Initialize DFSnum's to -1, in case a node is not reachable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25344 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Analysis/ET-Forest.h b/include/llvm/Analysis/ET-Forest.h index 5607d52ec54..b05776a9e0f 100644 --- a/include/llvm/Analysis/ET-Forest.h +++ b/include/llvm/Analysis/ET-Forest.h @@ -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;