[cfe-commits] r64747 - /cfe/trunk/lib/Basic/Diagnostic.cpp
    Chris Lattner 
    sabre at nondot.org
       
    Mon Feb 16 22:52:20 PST 2009
    
    
  
Author: lattner
Date: Tue Feb 17 00:52:20 2009
New Revision: 64747
URL: http://llvm.org/viewvc/llvm-project?rev=64747&view=rev
Log:
fix a minor bug with my previous patch
Modified:
    cfe/trunk/lib/Basic/Diagnostic.cpp
Modified: cfe/trunk/lib/Basic/Diagnostic.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Diagnostic.cpp?rev=64747&r1=64746&r2=64747&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Diagnostic.cpp (original)
+++ cfe/trunk/lib/Basic/Diagnostic.cpp Tue Feb 17 00:52:20 2009
@@ -355,8 +355,10 @@
   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;
    
    
More information about the cfe-commits
mailing list