diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2011-04-07 18:24:12 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2011-04-07 18:24:12 +0000 |
| commit | 4efbb07527757f6a55484b30d0815b50f0568bb2 (patch) | |
| tree | d9a2e981508c1985b5e8f91c761e1ee679396c82 | |
| parent | e4e4e3758097d7967fa6edf4ff878ba430f84f6e (diff) | |
| download | bcm5719-llvm-4efbb07527757f6a55484b30d0815b50f0568bb2.tar.gz bcm5719-llvm-4efbb07527757f6a55484b30d0815b50f0568bb2.zip | |
ChainedDiagnosticClient: Fix a bug where chained diagnostic clients wouldn't
accurately track warning/error counts.
llvm-svn: 129088
| -rw-r--r-- | clang/include/clang/Frontend/ChainedDiagnosticClient.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/include/clang/Frontend/ChainedDiagnosticClient.h b/clang/include/clang/Frontend/ChainedDiagnosticClient.h index 2d5e128dac3..70f21901db4 100644 --- a/clang/include/clang/Frontend/ChainedDiagnosticClient.h +++ b/clang/include/clang/Frontend/ChainedDiagnosticClient.h @@ -48,6 +48,9 @@ public: virtual void HandleDiagnostic(Diagnostic::Level DiagLevel, const DiagnosticInfo &Info) { + // Default implementation (Warnings/errors count). + DiagnosticClient::HandleDiagnostic(DiagLevel, Info); + Primary->HandleDiagnostic(DiagLevel, Info); Secondary->HandleDiagnostic(DiagLevel, Info); } |

