forked from OSchip/llvm-project
Initialize DFSnum's to -1, in case a node is not reachable.
llvm-svn: 25344
This commit is contained in:
parent
f49025dccc
commit
f41846c35b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue