Commit Graph

2 Commits

Author SHA1 Message Date
Dan Albert
0b43e8ce09 Appease MSAN buildbots.
This is just a compile time test, but we have MSAN buildbots that will
fail since `exp` was uninitialized.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@225286 91177308-0d34-0410-b5e6-96231b3b80d8
(cherry picked from commit 8f1ac0fb3d)

Change-Id: Id5f6afdba33fb2814fa28093ec33786a563ae6f3
2015-01-06 11:24:59 -08:00
Dan Albert
839d9e7d29 Obey [atomics.types.operations.req]/21 for GCC.
Summary:
Excerpt from [atomics.types.operations.req]/21:

> When only one memory_order argument is supplied, the value of
> success is order, and the value of failure is order except that a
> value of memory_order_acq_rel shall be replaced by the value
> memory_order_acquire and a value of memory_order_release shall be
> replaced by the value memory_order_relaxed.

Clean up some copy pasta while I'm here (someone added a return
statement to a void function).

Reviewers: EricWF, jroelofs, mclow.lists

Reviewed By: mclow.lists

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D6632

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@225280 91177308-0d34-0410-b5e6-96231b3b80d8
(cherry picked from commit c101738156)

Change-Id: I9893dff39cf71437cb01e0ff33c29add635e9cfe
2015-01-06 10:44:41 -08:00