diff options
-rw-r--r-- | include/clang/AST/Stmt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/AST/Stmt.h b/include/clang/AST/Stmt.h index 53f0186671..3b790caf75 100644 --- a/include/clang/AST/Stmt.h +++ b/include/clang/AST/Stmt.h @@ -174,7 +174,7 @@ public: /// \brief Destroy the current statement and its children. void Destroy(ASTContext &Ctx) { - assert(RefCount >= 0); + assert(RefCount >= 1); if (--RefCount == 0) DoDestroy(Ctx); } |