[llvm-commits] [llvm] r118589 - /llvm/trunk/lib/VMCore/Attributes.cpp
Owen Anderson
resistor at mac.com
Tue Nov 9 09:47:10 PST 2010
Author: resistor
Date: Tue Nov 9 11:47:10 2010
New Revision: 118589
URL: http://llvm.org/viewvc/llvm-project?rev=118589&view=rev
Log:
Last try to get this reference counting right, I swear.
Modified:
llvm/trunk/lib/VMCore/Attributes.cpp
Modified: llvm/trunk/lib/VMCore/Attributes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Attributes.cpp?rev=118589&r1=118588&r2=118589&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Attributes.cpp (original)
+++ llvm/trunk/lib/VMCore/Attributes.cpp Tue Nov 9 11:47:10 2010
@@ -131,7 +131,7 @@
}
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;
}
More information about the llvm-commits
mailing list