From: Ted Kremenek Date: Fri, 26 Mar 2010 23:36:48 +0000 (+0000) Subject: Fix comparison in isDiagnosticInFlight(). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5800f7ea9cf5621280089d690f677bd28064d6b5;p=clang Fix comparison in isDiagnosticInFlight(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99667 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/Diagnostic.h b/include/clang/Basic/Diagnostic.h index bce43c2c0a..3b8c3c3026 100644 --- a/include/clang/Basic/Diagnostic.h +++ b/include/clang/Basic/Diagnostic.h @@ -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.