mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
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:
parent
d35b1a2f21
commit
80f3d786ad
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user