mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-14 15:28:20 +00:00
Make sure to update the list end when an element is removed from it. This
fixes a crash in LICM when processing povray. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16367 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -77,6 +77,10 @@ class AliasSet {
|
|||||||
void removeFromList() {
|
void removeFromList() {
|
||||||
if (NextInList) NextInList->second.PrevInList = PrevInList;
|
if (NextInList) NextInList->second.PrevInList = PrevInList;
|
||||||
*PrevInList = NextInList;
|
*PrevInList = NextInList;
|
||||||
|
if (AS->PtrListEnd == &NextInList) {
|
||||||
|
AS->PtrListEnd = PrevInList;
|
||||||
|
assert(*AS->PtrListEnd == 0 && "List not terminated right!");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user