From: Chris Lattner Date: Tue, 22 Dec 2009 01:38:23 +0000 (+0000) Subject: fix unit test that I broke. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=336e06bd0f7037cfc4bf6d6579d13b848bcebe1e;p=oota-llvm.git fix unit test that I broke. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91877 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Type.h b/include/llvm/Type.h index 47a62f82530..e5169824f80 100644 --- a/include/llvm/Type.h +++ b/include/llvm/Type.h @@ -408,7 +408,7 @@ public: // 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(); }