From 0b5ec2d19970b4889886bfb7c0ac5542083cb74e Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Fri, 27 Jan 2012 06:15:37 +0000 Subject: [PATCH] In FixItRecompile::BeginInvocation() reset the diagnostics before executing the original action. llvm-svn: 149120 --- clang/lib/Rewrite/FrontendActions.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/clang/lib/Rewrite/FrontendActions.cpp b/clang/lib/Rewrite/FrontendActions.cpp index 5e33a441118b..49ae4ce1f2ce 100644 --- a/clang/lib/Rewrite/FrontendActions.cpp +++ b/clang/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(),