]> granicus.if.org Git - clang/commitdiff
fix a minor bug with my previous patch
authorChris Lattner <sabre@nondot.org>
Tue, 17 Feb 2009 06:52:20 +0000 (06:52 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 17 Feb 2009 06:52:20 +0000 (06:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64747 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Diagnostic.cpp

index 3ccaebf2b7a79a794d9d48db44df389a97196872..3f94a03347502854e3a9a43bc5604bb5f4c6c9ad 100644 (file)
@@ -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;