diff options
author | Eric Fiselier <eric@efcs.ca> | 2015-10-04 00:11:02 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2015-10-04 00:11:02 +0000 |
commit | 982137adce752908100fb622f12648d8bb5feed7 (patch) | |
tree | f6b44b9fc7ce0f6c166efc489095d479b6d2bf55 /lib/Format/WhitespaceManager.cpp | |
parent | 4d9c4a9b2346f522d08b3bada0dee8308be430a1 (diff) |
Diagnose const atomics in __atomic builtins.
Diagnose when a pointer to const T is used as the first argument in at atomic
builtin unless that builtin is a load operation. This is already checked for
C11 atomics builtins but not for __atomic ones.
This patch was given the LGTM by rsmith when it was part
of a larger review. (See http://reviews.llvm.org/D10407)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@249252 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Format/WhitespaceManager.cpp')
0 files changed, 0 insertions, 0 deletions