mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +00:00
add an assert, patch by Daniel Berlin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25343 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -50,6 +50,7 @@ public:
|
|||||||
Depth(0), Min(0), MinOccurrence(this) {};
|
Depth(0), Min(0), MinOccurrence(this) {};
|
||||||
|
|
||||||
void setParent(ETOccurrence *n) {
|
void setParent(ETOccurrence *n) {
|
||||||
|
assert(n != this && "Trying to set parent to ourselves");
|
||||||
Parent = n;
|
Parent = n;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user