From 4bd8040d14589b0900954672bc86c15bd6e0e7d0 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Fri, 11 Sep 2009 17:24:29 +0000 Subject: Fix PR4948 (and a leak): by not destroying the DwarfException object, the timer it creates was not being deleted. Since the timer belonged to a static timer group, the timer group would be destroyed on shutdown, and would notice and complain that not all timers it contained were destroyed. llvm-svn: 81533 --- llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib') diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp index aafac71b229..fed9668fccd 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp @@ -51,6 +51,8 @@ void DwarfWriter::BeginModule(Module *M, void DwarfWriter::EndModule() { DE->EndModule(); DD->EndModule(); + delete DD; DD = 0; + delete DE; DE = 0; } /// BeginFunction - Gather pre-function debug information. Assumes being -- cgit v1.2.3