| commit | a383c94ccd633e5f62851f9ecc2d4af0e07e0bd4 | [log] [tgz] |
|---|---|---|
| author | Aaron Ballman <aaron@aaronballman.com> | Sat May 05 17:38:42 2018 +0000 |
| committer | Aaron Ballman <aaron@aaronballman.com> | Sat May 05 17:38:42 2018 +0000 |
| tree | 41fc2eb51b38dbad27c5479420787e28c3c7b74d | |
| parent | fedd39045f457ee4d683ad73dc3b4fda87ca7dba [diff] |
Disallow pointers to const in __sync_fetch_and_xxx.
Diagnoses code like:
void f(const int *ptr) {
__sync_fetch_and_add(ptr, 1);
}
which matches the behavior of GCC and ICC.
llvm-svn: 331598