mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-15 19:24:33 +00:00
Assert that all MachineInstrs update PhysRegUseDefLists in
their cleanup code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53194 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -27,6 +27,9 @@ MachineRegisterInfo::~MachineRegisterInfo() {
|
|||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
for (unsigned i = 0, e = VRegInfo.size(); i != e; ++i)
|
for (unsigned i = 0, e = VRegInfo.size(); i != e; ++i)
|
||||||
assert(VRegInfo[i].second == 0 && "Vreg use list non-empty still?");
|
assert(VRegInfo[i].second == 0 && "Vreg use list non-empty still?");
|
||||||
|
for (unsigned i = 0, e = UsedPhysRegs.size(); i != e; ++i)
|
||||||
|
assert(!PhysRegUseDefLists[i] &&
|
||||||
|
"PhysRegUseDefLists has entries after all instructions are deleted");
|
||||||
#endif
|
#endif
|
||||||
delete [] PhysRegUseDefLists;
|
delete [] PhysRegUseDefLists;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user