mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-27 04:18:42 +00:00
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
This commit is contained in:
1 parent
4f8fb4973d
commit
597f9797fd
1 file changed
+2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user