diff options
author | Owen Anderson <resistor@mac.com> | 2010-11-09 17:47:10 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2010-11-09 17:47:10 +0000 |
commit | 91bfeb10b524ac5de08b57953fca0e92e38b7fc7 (patch) | |
tree | b5ddd6056873b9fc731d2d711a9e2c6397fd967e /llvm/lib | |
parent | 2d335436f31c129f569ffea0261a94d6d3334657 (diff) | |
download | bcm5719-llvm-91bfeb10b524ac5de08b57953fca0e92e38b7fc7.tar.gz bcm5719-llvm-91bfeb10b524ac5de08b57953fca0e92e38b7fc7.zip |
Last try to get this reference counting right, I swear.
llvm-svn: 118589
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/VMCore/Attributes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Attributes.cpp b/llvm/lib/VMCore/Attributes.cpp index 37a217fc8c5..477111a3ae8 100644 --- a/llvm/lib/VMCore/Attributes.cpp +++ b/llvm/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; } |