]> granicus.if.org Git - clang/commit
Fix deduction of __atomic_load's parameter types.
authorEric Fiselier <eric@efcs.ca>
Wed, 30 Mar 2016 23:39:56 +0000 (23:39 +0000)
committerEric Fiselier <eric@efcs.ca>
Wed, 30 Mar 2016 23:39:56 +0000 (23:39 +0000)
commit7e92e6620994c5762651628f401bdbb2189849b3
tree188e4177498c4800881349bd479d68e792ab0ba7
parent8f2ebd036729227977ba262556832ca99777c474
Fix deduction of __atomic_load's parameter types.

Summary:
__atomic_load's allows it's first argument to be a pointer to a const type. However the second argument is an output parameter and must be a pointer to non-const.
This patch fixes the signature of __atomic_load generated by clang so that it respects the above requirements.

Reviewers: rsmith, majnemer

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D13420

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@264967 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaChecking.cpp
test/Sema/atomic-ops.c