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

llvm-svn: 25344
This commit is contained in:
Chris Lattner 2006-01-15 21:48:36 +00:00
parent f49025dccc
commit f41846c35b
1 changed files with 3 additions and 2 deletions

View 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;