summaryrefslogtreecommitdiff
path: root/include/llvm/Type.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-12-22 01:38:23 +0000
committerChris Lattner <sabre@nondot.org>2009-12-22 01:38:23 +0000
commit336e06bd0f7037cfc4bf6d6579d13b848bcebe1e (patch)
treea2f91939c6970e7220bd9096b0038c7097b646a7 /include/llvm/Type.h
parent651ad13d3c0a232de84d8efe02b11f272b3dee3e (diff)
downloadllvm-336e06bd0f7037cfc4bf6d6579d13b848bcebe1e.tar.gz
llvm-336e06bd0f7037cfc4bf6d6579d13b848bcebe1e.tar.bz2
llvm-336e06bd0f7037cfc4bf6d6579d13b848bcebe1e.tar.xz
fix unit test that I broke.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91877 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Type.h')
-rw-r--r--include/llvm/Type.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Type.h b/include/llvm/Type.h
index 47a62f8253..e5169824f8 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();
}