mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +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:
parent
05ccd70396
commit
d2da286e99
@ -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