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 | 336f26be05c30c0c65b8b518d68f04c29b43b3d2 (patch) | |
tree | 47b2271841e24555f80b65b7fc45294cb64451ff /lib/Basic | |
parent | f5d2328fc849288c3a62e43d065685f516d57091 (diff) |
fix a minor bug with my previous patch
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64747 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic')
-rw-r--r-- | lib/Basic/Diagnostic.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Basic/Diagnostic.cpp b/lib/Basic/Diagnostic.cpp index 3ccaebf2b7..3f94a03347 100644 --- a/lib/Basic/Diagnostic.cpp +++ b/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; |