forked from OSchip/llvm-project
Assert that all MachineInstrs update PhysRegUseDefLists in
their cleanup code. llvm-svn: 53194
This commit is contained in:
parent
03001cb820
commit
14ce7d1eba
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue