Fixing 'Aquire' typo and libcxx build.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@277456 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Ben Craig
2016-08-02 13:43:48 +00:00
parent 8842ea9e94
commit db870e6015
2 changed files with 2 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ namespace {
enum __libcpp_atomic_order {
_AO_Relaxed = __ATOMIC_RELAXED,
_AO_Consume = __ATOMIC_CONSUME,
_AO_Aquire = __ATOMIC_ACQUIRE,
_AO_Acquire = __ATOMIC_ACQUIRE,
_AO_Release = __ATOMIC_RELEASE,
_AO_Acq_Rel = __ATOMIC_ACQ_REL,
_AO_Seq = __ATOMIC_SEQ_CST

View File

@@ -117,7 +117,7 @@ __shared_weak_count::__release_weak() _NOEXCEPT
// threads, and have them all get copied at once. The argument
// also doesn't apply for __release_shared, because an outstanding
// weak_ptr::lock() could read / modify the shared count.
if (__libcpp_atomic_load(&__shared_weak_owners_, _AO_Aquire) == 0)
if (__libcpp_atomic_load(&__shared_weak_owners_, _AO_Acquire) == 0)
{
// no need to do this store, because we are about
// to destroy everything.