This patch teaches clang that it has to emit a warning when NULL is passed as the 'expected' pointer parameter into an atomic compare exchange call.
Details
Details
- Reviewers
manmanren rsmith - Commits
- rG675221589e1a: [Sema][Atomics] Treat expected pointer in compare exchange atomics as _Nonnull
rC287776: [Sema][Atomics] Treat expected pointer in compare exchange atomics as _Nonnull
rL287776: [Sema][Atomics] Treat expected pointer in compare exchange atomics as _Nonnull
Diff Detail
Diff Detail
- Repository
- rL LLVM