mirror of
https://github.com/intel/llvm.git
synced 2026-02-08 00:50:03 +08:00
Fix crasher with IgnoringDiagClient
llvm-svn: 111447
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user