Don't leak RegClass2VRegMap, which is now a new[] array instead of a

std::vector.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106298 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2010-06-18 18:54:05 +00:00
parent a606d955de
commit 71f095b20a

View File

@ -37,6 +37,7 @@ MachineRegisterInfo::~MachineRegisterInfo() {
"PhysRegUseDefLists has entries after all instructions are deleted");
#endif
delete [] PhysRegUseDefLists;
delete [] RegClass2VRegMap;
}
/// setRegClass - Set the register class of the specified virtual register.