summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-06-18 18:54:05 +0000
committerDan Gohman <gohman@apple.com>2010-06-18 18:54:05 +0000
commit71f095b20a2b1710d35b81fced4ae8b2ca1a6f61 (patch)
tree8d1b9ef445f83454970ddbfc8f58946c6573b543 /lib
parenta606d955de3b0f777131d74162eb6f11b5f95d75 (diff)
downloadllvm-71f095b20a2b1710d35b81fced4ae8b2ca1a6f61.tar.gz
llvm-71f095b20a2b1710d35b81fced4ae8b2ca1a6f61.tar.bz2
llvm-71f095b20a2b1710d35b81fced4ae8b2ca1a6f61.tar.xz
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
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/MachineRegisterInfo.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/MachineRegisterInfo.cpp b/lib/CodeGen/MachineRegisterInfo.cpp
index 3982499eab..631c43c6b3 100644
--- a/lib/CodeGen/MachineRegisterInfo.cpp
+++ b/lib/CodeGen/MachineRegisterInfo.cpp
@@ -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.