summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-07-01 06:29:07 +0000
committerChris Lattner <sabre@nondot.org>2004-07-01 06:29:07 +0000
commit9a60c532a8e6cbe62e59980994967501e47162d5 (patch)
tree17ddb4a6c30230598567451db9f43ce19a8bdd10 /llvm/lib/CodeGen/MachineFunction.cpp
parentc85535c8bed444502b6b266b590bb735cfd06aeb (diff)
downloadbcm5719-llvm-9a60c532a8e6cbe62e59980994967501e47162d5.tar.gz
bcm5719-llvm-9a60c532a8e6cbe62e59980994967501e47162d5.zip
Make sure that we destroy the MBB's, with all of their instructions, before
any other data structures llvm-svn: 14524
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineFunction.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index 51d88ff3b85..f9b8bbbd12f 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -115,6 +115,7 @@ MachineFunction::MachineFunction(const Function *F,
}
MachineFunction::~MachineFunction() {
+ BasicBlocks.clear();
delete SSARegMapping;
delete MFInfo;
delete FrameInfo;
OpenPOWER on IntegriCloud