From: Owen Anderson Date: Tue, 9 Nov 2010 17:47:10 +0000 (+0000) Subject: Last try to get this reference counting right, I swear. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=80f3d786ada3215abe5561ac61d33437e99be3a2;p=oota-llvm.git 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 --- 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; }