diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-08-25 18:53:16 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-08-25 18:53:16 +0000 |
commit | cf5c19b9b7145e7fc092fa1309085deded25b0f1 (patch) | |
tree | b389a661344fa442c3e8c343b962459cf2a0a8ba | |
parent | ff4264dae31cf42807b64ecc114906b0b835690a (diff) |
Changed condition of an assert.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80020 91177308-0d34-0410-b5e6-96231b3b80d8
-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); } |