add an assert, patch by Daniel Berlin

llvm-svn: 25343
This commit is contained in:
Chris Lattner 2006-01-15 21:46:23 +00:00
parent 8cc02aa833
commit 789d498d78

View File

@ -50,6 +50,7 @@ public:
Depth(0), Min(0), MinOccurrence(this) {};
void setParent(ETOccurrence *n) {
assert(n != this && "Trying to set parent to ourselves");
Parent = n;
}