[cfe-commits] r80020 - /cfe/trunk/include/clang/AST/Stmt.h

Fariborz Jahanian fjahanian at apple.com
Tue Aug 25 11:53:16 PDT 2009


Author: fjahanian
Date: Tue Aug 25 13:53:16 2009
New Revision: 80020

URL: http://llvm.org/viewvc/llvm-project?rev=80020&view=rev
Log:
Changed condition of an assert.


Modified:
    cfe/trunk/include/clang/AST/Stmt.h

Modified: cfe/trunk/include/clang/AST/Stmt.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Stmt.h?rev=80020&r1=80019&r2=80020&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/Stmt.h (original)
+++ cfe/trunk/include/clang/AST/Stmt.h Tue Aug 25 13:53:16 2009
@@ -174,7 +174,7 @@
   
   /// \brief Destroy the current statement and its children.
   void Destroy(ASTContext &Ctx) { 
-    assert(RefCount >= 0);
+    assert(RefCount >= 1);
     if (--RefCount == 0)
       DoDestroy(Ctx); 
   }





More information about the cfe-commits mailing list