Make sure that we destroy the MBB's, with all of their instructions, before
any other data structures

llvm-svn: 14524
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index 51d88ff..f9b8bbb 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -115,6 +115,7 @@
 }
 
 MachineFunction::~MachineFunction() { 
+  BasicBlocks.clear();
   delete SSARegMapping;
   delete MFInfo;
   delete FrameInfo;