Make sure that we destroy the MBB's, with all of their instructions, before
authorChris Lattner <sabre@nondot.org>
Thu, 1 Jul 2004 06:29:07 +0000 (06:29 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 1 Jul 2004 06:29:07 +0000 (06:29 +0000)
any other data structures

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

lib/CodeGen/MachineFunction.cpp

index 51d88ff3b85c3d262f5f70c33b5c79b28f6a912b..f9b8bbbd12fe6c3f98415b2be434f1ee492a3c1f 100644 (file)
@@ -115,6 +115,7 @@ MachineFunction::MachineFunction(const Function *F,
 }
 
 MachineFunction::~MachineFunction() { 
+  BasicBlocks.clear();
   delete SSARegMapping;
   delete MFInfo;
   delete FrameInfo;