Fix crasher with IgnoringDiagClient

llvm-svn: 111447
This commit is contained in:
Douglas Gregor 2010-08-18 23:03:13 +00:00
parent 26403acef7
commit f0708dee83
1 changed files with 1 additions and 2 deletions

View File

@ -486,8 +486,7 @@ void html::HighlightMacros(Rewriter &R, FileID FID, const Preprocessor& PP) {
// Temporarily change the diagnostics object so that we ignore any generated
// diagnostics from this pass.
IgnoringDiagClient TmpDC;
Diagnostic TmpDiags(&TmpDC);
Diagnostic TmpDiags(new IgnoringDiagClient);
// FIXME: This is a huge hack; we reuse the input preprocessor because we want
// its state, but we aren't actually changing it (we hope). This should really