Delete the FissionCU.
authorEric Christopher <echristo@gmail.com>
Mon, 10 Dec 2012 19:51:18 +0000 (19:51 +0000)
committerEric Christopher <echristo@gmail.com>
Mon, 10 Dec 2012 19:51:18 +0000 (19:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169757 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfDebug.cpp

index 574474c118e7581c802745b9a5ffe864999e657b..cb5e71917b02dbaaf83a53c5bc6b626c8cd019d6 100644 (file)
@@ -981,6 +981,9 @@ void DwarfDebug::endModule() {
   for (DenseMap<const MDNode *, CompileUnit *>::iterator I = CUMap.begin(),
          E = CUMap.end(); I != E; ++I)
     delete I->second;
+
+  delete FissionCU;
+
   // Reset these for the next Module if we have one.
   FirstCU = NULL;
   FissionCU = NULL;