Don't leak RegClass2VRegMap, which is now a new[] array instead of a
authorDan Gohman <gohman@apple.com>
Fri, 18 Jun 2010 18:54:05 +0000 (18:54 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 18 Jun 2010 18:54:05 +0000 (18:54 +0000)
std::vector.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106298 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineRegisterInfo.cpp

index 3982499eab6b0a477c022e2dd5863ad86f2f41d9..631c43c6b32116951d1a9c361633dd8ce5bd3c65 100644 (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.