]> granicus.if.org Git - clang/commitdiff
In FixItRecompile::BeginInvocation() reset the diagnostics before executing
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 27 Jan 2012 06:15:37 +0000 (06:15 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 27 Jan 2012 06:15:37 +0000 (06:15 +0000)
the original action.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149120 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Rewrite/FrontendActions.cpp

index 5e33a441118b12516b124016282061ed893b92db..49ae4ce1f2cebc7f0a478b80fb6b955e5e28980b 100644 (file)
@@ -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(),