diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-17 06:52:20 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-17 06:52:20 +0000 |
commit | 9ee10ea535a0d880c369ed18a20d0fd28ef59012 (patch) | |
tree | 4da3cdaf028e58288f9fdb3ed4203ef1eafa0666 /clang/lib/Basic/Diagnostic.cpp | |
parent | d2a2c134743ba6ade54e20ab52f254a40342ed28 (diff) | |
download | bcm5719-llvm-9ee10ea535a0d880c369ed18a20d0fd28ef59012.tar.gz bcm5719-llvm-9ee10ea535a0d880c369ed18a20d0fd28ef59012.zip |
fix a minor bug with my previous patch
llvm-svn: 64747
Diffstat (limited to 'clang/lib/Basic/Diagnostic.cpp')
-rw-r--r-- | clang/lib/Basic/Diagnostic.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Basic/Diagnostic.cpp b/clang/lib/Basic/Diagnostic.cpp index 3ccaebf2b7a..3f94a033475 100644 --- a/clang/lib/Basic/Diagnostic.cpp +++ b/clang/lib/Basic/Diagnostic.cpp @@ -355,8 +355,10 @@ void Diagnostic::ProcessDiag() { if (SuppressSystemWarnings && !ShouldEmitInSystemHeader && Info.getLocation().isValid() && Info.getLocation().getSpellingLoc().isInSystemHeader() && - (DiagLevel != Diagnostic::Note || LastDiagLevel == Diagnostic::Ignored)) + (DiagLevel != Diagnostic::Note || LastDiagLevel == Diagnostic::Ignored)) { + LastDiagLevel = Diagnostic::Ignored; return; + } if (DiagLevel >= Diagnostic::Error) { ErrorOccurred = true; |