From 80f3d786ada3215abe5561ac61d33437e99be3a2 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Tue, 9 Nov 2010 17:47:10 +0000 Subject: [PATCH] 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 --- lib/VMCore/Attributes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/VMCore/Attributes.cpp b/lib/VMCore/Attributes.cpp index 37a217fc8c5..477111a3ae8 100644 --- a/lib/VMCore/Attributes.cpp +++ b/lib/VMCore/Attributes.cpp @@ -131,7 +131,7 @@ public: } void DropRef() { sys::SmartScopedLock Lock(*ALMutex); - sys::cas_flag new_val = RefCount--; + sys::cas_flag new_val = --RefCount; if (new_val == 0) delete this; } -- 2.34.1