Fix PR8441, a race condition in the static attributes list. While the reference...
authorOwen Anderson <resistor@mac.com>
Tue, 9 Nov 2010 00:27:03 +0000 (00:27 +0000)
committerOwen Anderson <resistor@mac.com>
Tue, 9 Nov 2010 00:27:03 +0000 (00:27 +0000)
commit3afb024907729b09bd91ff2358c0b085f472e6ac
tree7131e321d6bd207586f4d115061715d873d652d3
parent4b97c55648a228305e28b4164dae9dcdebccdc8f
Fix PR8441, a race condition in the static attributes list.  While the reference counting was itself threadsafe,
the implicit removal of each object from the global list was not.  Make this operation atomic.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118461 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/Attributes.cpp