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
This commit is contained in:
Chris Lattner 2006-01-15 21:48:36 +00:00
parent d2da286e99
commit 801af7376e

View File

@ -130,7 +130,8 @@ public:
class ETNode { class ETNode {
public: 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) { Right(NULL), Son(NULL), ParentOcc(NULL) {
RightmostOcc = new ETOccurrence(this); RightmostOcc = new ETOccurrence(this);
}; };
@ -287,7 +288,7 @@ public:
void *data; void *data;
// DFS Numbers // DFS Numbers
unsigned DFSNumIn, DFSNumOut; int DFSNumIn, DFSNumOut;
// Father // Father
ETNode *Father; ETNode *Father;