From 4b9a4006748b8d72a04504a5fc1f5daa73bf69f9 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 1 Jul 2004 06:29:07 +0000 Subject: [PATCH] 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 --- lib/CodeGen/MachineFunction.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/CodeGen/MachineFunction.cpp b/lib/CodeGen/MachineFunction.cpp index 51d88ff3b85..f9b8bbbd12f 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; -- 2.34.1