diff options
| author | Duncan Sands <baldrick@free.fr> | 2009-09-11 17:24:29 +0000 |
|---|---|---|
| committer | Duncan Sands <baldrick@free.fr> | 2009-09-11 17:24:29 +0000 |
| commit | a24946acb21bffc40e9054f7ac25eb9319b406d8 (patch) | |
| tree | 7a011e30c56eb7c36c732b9e02e4ce81c661549d /lib/CodeGen | |
| parent | 6cd70ca0ab41c5eab214b92689b072f3fe53bb37 (diff) | |
| download | external_llvm-a24946acb21bffc40e9054f7ac25eb9319b406d8.zip external_llvm-a24946acb21bffc40e9054f7ac25eb9319b406d8.tar.gz external_llvm-a24946acb21bffc40e9054f7ac25eb9319b406d8.tar.bz2 | |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81533 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
| -rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfWriter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp index aafac71..fed9668 100644 --- a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp +++ b/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 |
