diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-01-27 06:15:37 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-01-27 06:15:37 +0000 |
commit | 0b5ec2d19970b4889886bfb7c0ac5542083cb74e (patch) | |
tree | 32abab692fc7ff14f5793ce7976ace85a3c19b94 | |
parent | 9e18b6672a46e120c622de6290d5c89157f86748 (diff) | |
download | bcm5719-llvm-0b5ec2d19970b4889886bfb7c0ac5542083cb74e.tar.gz bcm5719-llvm-0b5ec2d19970b4889886bfb7c0ac5542083cb74e.zip |
In FixItRecompile::BeginInvocation() reset the diagnostics before executing
the original action.
llvm-svn: 149120
-rw-r--r-- | clang/lib/Rewrite/FrontendActions.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Rewrite/FrontendActions.cpp b/clang/lib/Rewrite/FrontendActions.cpp index 5e33a441118..49ae4ce1f2c 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(), |