]> granicus.if.org Git - clang/commitdiff
Fix comparison in isDiagnosticInFlight().
authorTed Kremenek <kremenek@apple.com>
Fri, 26 Mar 2010 23:36:48 +0000 (23:36 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 26 Mar 2010 23:36:48 +0000 (23:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99667 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/Diagnostic.h

index bce43c2c0a5f9bc56d087327b3fd0b70075d9b17..3b8c3c30266744d01f59709cb640531442080adf 100644 (file)
@@ -435,7 +435,7 @@ public:
   inline DiagnosticBuilder Report(unsigned DiagID);
 
   /// \brief Determine whethere there is already a diagnostic in flight.
-  bool isDiagnosticInFlight() const { return CurDiagID != 0; }
+  bool isDiagnosticInFlight() const { return CurDiagID != ~0U; }
 
   /// \brief Set the "delayed" diagnostic that will be emitted once
   /// the current diagnostic completes.