diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-03-26 23:36:48 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-03-26 23:36:48 +0000 |
commit | 5800f7ea9cf5621280089d690f677bd28064d6b5 (patch) | |
tree | ec1482dc735c7c5064fc93d5368ba645b33bf787 | |
parent | dec4c248f4c13c99d25e07f9e4e3f9f75c0772cb (diff) |
Fix comparison in isDiagnosticInFlight().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99667 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Basic/Diagnostic.h | 2 |
1 files changed, 1 insertions, 1 deletions
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. |