From 5800f7ea9cf5621280089d690f677bd28064d6b5 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Fri, 26 Mar 2010 23:36:48 +0000 Subject: [PATCH] Fix comparison in isDiagnosticInFlight(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99667 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Basic/Diagnostic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.50.1