mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +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:
parent
1ce75dcbbc
commit
03bafaf802
@ -27,6 +27,9 @@ MachineRegisterInfo::~MachineRegisterInfo() {
|
||||
#ifndef NDEBUG
|
||||
for (unsigned i = 0, e = VRegInfo.size(); i != e; ++i)
|
||||
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
|
||||
delete [] PhysRegUseDefLists;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user