destroy MyDiagnosticPrinter on newer clangs
commitc8d4ee75a3322d789fd14f3b5a587ff60a109c0a
authorSven Verdoolaege <skimo@kotnet.org>
Sat, 12 Nov 2011 15:46:12 +0000 (12 16:46 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Sun, 13 Nov 2011 14:51:33 +0000 (13 15:51 +0100)
treecd5c142087899017308c0d7a8f7012649fcec5a6
parent183b2669389eae42d93374d412270a74feca2cf0
destroy MyDiagnosticPrinter on newer clangs

In 31e1c8e (adapt to the recent changes in clang,
Thu Oct 6 12:43:12 2011 +0100), a clone method was added to
MyDiagnosticPrinter to support recent clangs, but we didn't take
into account that if the MyDiagnosticPrinter, then the original
MyDiagnosticPrinter was left hanging around.  We now destroy it
if it turns out that the clone method has ever been called.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
pet.cc