[llvm-commits] [llvm] r91877 - /llvm/trunk/include/llvm/Type.h

Chris Lattner sabre at nondot.org
Mon Dec 21 17:38:23 PST 2009


Author: lattner
Date: Mon Dec 21 19:38:23 2009
New Revision: 91877

URL: http://llvm.org/viewvc/llvm-project?rev=91877&view=rev
Log:
fix unit test that I broke.

Modified:
    llvm/trunk/include/llvm/Type.h

Modified: llvm/trunk/include/llvm/Type.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Type.h?rev=91877&r1=91876&r2=91877&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Type.h (original)
+++ llvm/trunk/include/llvm/Type.h Mon Dec 21 19:38:23 2009
@@ -408,7 +408,7 @@
 
     // If this is the last PATypeHolder using this object, and there are no
     // PATypeHandles using it, the type is dead, delete it now.
-    if (RefCount-- == 0 && AbstractTypeUsers.empty())
+    if (--RefCount == 0 && AbstractTypeUsers.empty())
       this->destroy();
   }
   





More information about the llvm-commits mailing list