[cfe-commits] r99667 - /cfe/trunk/include/clang/Basic/Diagnostic.h
Ted Kremenek
kremenek at apple.com
Fri Mar 26 16:36:48 PDT 2010
Author: kremenek
Date: Fri Mar 26 18:36:48 2010
New Revision: 99667
URL: http://llvm.org/viewvc/llvm-project?rev=99667&view=rev
Log:
Fix comparison in isDiagnosticInFlight().
Modified:
cfe/trunk/include/clang/Basic/Diagnostic.h
Modified: cfe/trunk/include/clang/Basic/Diagnostic.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/Diagnostic.h?rev=99667&r1=99666&r2=99667&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/Diagnostic.h (original)
+++ cfe/trunk/include/clang/Basic/Diagnostic.h Fri Mar 26 18:36:48 2010
@@ -435,7 +435,7 @@
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.
More information about the cfe-commits
mailing list