In FixItRecompile::BeginInvocation() reset the diagnostics before executing

the original action.

llvm-svn: 149120
This commit is contained in:
Argyrios Kyrtzidis 2012-01-27 06:15:37 +00:00
parent 9e18b6672a
commit 0b5ec2d199
1 changed files with 1 additions and 0 deletions

View 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(),