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 | 4bd8040d14589b0900954672bc86c15bd6e0e7d0 (patch) | |
| tree | e6551f235027bb2721b0e5fc9071b6dba1f58d07 /llvm/lib/CodeGen | |
| parent | 992e42b606f273b33fca40a6e3c678736aa3d54f (diff) | |
| download | bcm5719-llvm-4bd8040d14589b0900954672bc86c15bd6e0e7d0.tar.gz bcm5719-llvm-4bd8040d14589b0900954672bc86c15bd6e0e7d0.zip | |
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
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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 |

