diff --git a/clang/include/clang/AST/Stmt.h b/clang/include/clang/AST/Stmt.h index 53f018667146..3b790caf758e 100644 --- a/clang/include/clang/AST/Stmt.h +++ b/clang/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); }