aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-11-09 17:47:10 +0000
committerOwen Anderson <resistor@mac.com>2010-11-09 17:47:10 +0000
commit80f3d786ada3215abe5561ac61d33437e99be3a2 (patch)
treee14c55e5a1093c787d7734e9764006c5ee1a5533
parentd35b1a2f21b9707a501563d8e4216204bb17dbb8 (diff)
Last try to get this reference counting right, I swear.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118589 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/VMCore/Attributes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Attributes.cpp b/lib/VMCore/Attributes.cpp
index 37a217fc8c..477111a3ae 100644
--- a/lib/VMCore/Attributes.cpp
+++ b/lib/VMCore/Attributes.cpp
@@ -131,7 +131,7 @@ public:
}
void DropRef() {
sys::SmartScopedLock<true> Lock(*ALMutex);
- sys::cas_flag new_val = RefCount--;
+ sys::cas_flag new_val = --RefCount;
if (new_val == 0)
delete this;
}