mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-09 05:13:01 +00:00
add an assert, patch by Daniel Berlin
llvm-svn: 25343
This commit is contained in:
parent
8cc02aa833
commit
789d498d78
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user