From: Chris Lattner Date: Tue, 17 Feb 2009 06:52:20 +0000 (+0000) Subject: fix a minor bug with my previous patch X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=336f26be05c30c0c65b8b518d68f04c29b43b3d2;p=clang 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 --- 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;