forked from OSchip/llvm-project
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
This commit is contained in:
parent
992e42b606
commit
4bd8040d14
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue