summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commit91bfeb10b524ac5de08b57953fca0e92e38b7fc7 (patch)
treeb5ddd6056873b9fc731d2d711a9e2c6397fd967e /llvm/lib
parent2d335436f31c129f569ffea0261a94d6d3334657 (diff)
downloadbcm5719-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.cpp2
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;
}
OpenPOWER on IntegriCloud