Free memory when done with it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2198 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-04-09 15:04:37 +00:00
parent af50d00829
commit dbc3b00df5

View File

@ -78,7 +78,10 @@ public:
const TargetMachine ⌖
MachineRegInfo(const TargetMachine& tgt) : target(tgt) { }
~MachineRegInfo() {
for (unsigned i = 0, e = MachineRegClassArr.size(); i != e; ++i)
delete MachineRegClassArr[i];
}
// According the definition of a MachineOperand class, a Value in a
// machine instruction can go into either a normal register or a