aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
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
commit4b9a4006748b8d72a04504a5fc1f5daa73bf69f9 (patch)
tree3985433c12ea1f827007c7de6bb0ff917a58399b /lib/CodeGen
parent8490f9c92e354fd9cd242bae89b24e6c59e5c794 (diff)
downloadexternal_llvm-4b9a4006748b8d72a04504a5fc1f5daa73bf69f9.zip
external_llvm-4b9a4006748b8d72a04504a5fc1f5daa73bf69f9.tar.gz
external_llvm-4b9a4006748b8d72a04504a5fc1f5daa73bf69f9.tar.bz2
Make sure that we destroy the MBB's, with all of their instructions, before
any other data structures git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14524 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/MachineFunction.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/MachineFunction.cpp b/lib/CodeGen/MachineFunction.cpp
index 51d88ff..f9b8bbb 100644
--- a/lib/CodeGen/MachineFunction.cpp
+++ b/lib/CodeGen/MachineFunction.cpp
@@ -115,6 +115,7 @@ MachineFunction::MachineFunction(const Function *F,
}
MachineFunction::~MachineFunction() {
+ BasicBlocks.clear();
delete SSARegMapping;
delete MFInfo;
delete FrameInfo;