commit | a50a97c34f84eb885e9a9fc86b167d1bc6f04b0b | [log] [tgz] |
---|---|---|
author | Alex Lorenz <arphaman@gmail.com> | Wed Nov 23 16:57:03 2016 +0000 |
committer | Alex Lorenz <arphaman@gmail.com> | Thu Nov 24 11:14:59 2016 +0000 |
tree | 01b5f779673beee46f393e94cd8e02c6b93385de | |
parent | c1a6714919136dca89dc30be4c68d09016b861f1 [diff] |
[Sema][Atomics] Treat expected pointer in compare exchange atomics as _Nonnull This commit teaches clang that is has to emit a warning when NULL is passed as the 'expected' pointer parameter into an atomic compare exchange call. rdar://18926650 Differential Revision: https://reviews.llvm.org/D26978 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@287776 91177308-0d34-0410-b5e6-96231b3b80d8 (cherry picked from commit 017ae22a5cb136fd1668e5586bfef535d0e51e2f)