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
parent
fedd3904
Please register or sign in to comment