From: Dan Gohman Date: Fri, 18 Jun 2010 18:54:05 +0000 (+0000) Subject: Don't leak RegClass2VRegMap, which is now a new[] array instead of a X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=71f095b20a2b1710d35b81fced4ae8b2ca1a6f61;p=oota-llvm.git 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 --- diff --git a/lib/CodeGen/MachineRegisterInfo.cpp b/lib/CodeGen/MachineRegisterInfo.cpp index 3982499eab6..631c43c6b32 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.