diff options
Diffstat (limited to 'llvm')
-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 d854628603b..c9240e534c7 100644 --- a/llvm/lib/VMCore/Attributes.cpp +++ b/llvm/lib/VMCore/Attributes.cpp @@ -132,7 +132,7 @@ public: void DropRef() { sys::SmartScopedLock<true> Lock(*ALMutex); sys::cas_flag old = RefCount++; - if (old == 0) + if (old == 1) delete this; } |