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
This commit is contained in:
Owen Anderson 2010-11-09 17:47:10 +00:00
parent d35b1a2f21
commit 80f3d786ad

View File

@ -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;
}