From: Argyrios Kyrtzidis Date: Fri, 27 Jan 2012 06:15:37 +0000 (+0000) Subject: In FixItRecompile::BeginInvocation() reset the diagnostics before executing X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=97a9cf3b99486c7e8c128fce7e230e31bc7ba7c9;p=clang In FixItRecompile::BeginInvocation() reset the diagnostics before executing the original action. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149120 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Rewrite/FrontendActions.cpp b/lib/Rewrite/FrontendActions.cpp index 5e33a44111..49ae4ce1f2 100644 --- a/lib/Rewrite/FrontendActions.cpp +++ b/lib/Rewrite/FrontendActions.cpp @@ -138,6 +138,7 @@ bool FixItRecompile::BeginInvocation(CompilerInstance &CI) { if (err) return false; CI.getDiagnosticClient().clear(); + CI.getDiagnostics().Reset(); PreprocessorOptions &PPOpts = CI.getPreprocessorOpts(); PPOpts.RemappedFiles.insert(PPOpts.RemappedFiles.end(),