diff options
author | JF Bastien <jfbastien@apple.com> | 2018-05-25 00:07:09 +0000 |
---|---|---|
committer | JF Bastien <jfbastien@apple.com> | 2018-05-25 00:07:09 +0000 |
commit | 7f0a05ada547b73a33f55d00a3fa984b2cd45a17 (patch) | |
tree | 2334b179bdf397a9fd3bb745d2f1746e19f1ca4a /libcxx/test/std/algorithms/alg.modifying.operations/alg.unique/unique_pred.pass.cpp | |
parent | 698b0a674d26abffb8ad0cbc9f4f316d359f5a53 (diff) | |
download | bcm5719-llvm-7f0a05ada547b73a33f55d00a3fa984b2cd45a17.tar.gz bcm5719-llvm-7f0a05ada547b73a33f55d00a3fa984b2cd45a17.zip |
Make atomic non-member functions as nonnull
Summary:
As a companion to libc++ patch https://reviews.llvm.org/D47225, mark builtin atomic non-member functions which accept pointers as nonnull.
The atomic non-member functions accept pointers to std::atomic / std::atomic_flag as well as to the non-atomic value. These are all dereferenced unconditionally when lowered, and therefore will fault if null. It's a tiny gotcha for new users, especially when they pass in NULL as expected value (instead of passing a pointer to a NULL value).
<rdar://problem/18473124>
Reviewers: arphaman
Subscribers: aheejin, cfe-commits
Differential Revision: https://reviews.llvm.org/D47229
llvm-svn: 333246
Diffstat (limited to 'libcxx/test/std/algorithms/alg.modifying.operations/alg.unique/unique_pred.pass.cpp')
0 files changed, 0 insertions, 0 deletions