aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
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
commit3f57a6025111ce8f71b0116a2efd01afa971fa5b (patch)
tree8d1b9ef445f83454970ddbfc8f58946c6573b543 /lib/CodeGen
parent05bf7d1642fe2553cc94fd2c27da62357560ab8d (diff)
downloadexternal_llvm-3f57a6025111ce8f71b0116a2efd01afa971fa5b.zip
external_llvm-3f57a6025111ce8f71b0116a2efd01afa971fa5b.tar.gz
external_llvm-3f57a6025111ce8f71b0116a2efd01afa971fa5b.tar.bz2
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/CodeGen')
-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 3982499..631c43c 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.